Package io.nem.symbol.catapult.builders
Class ProofGammaDto
- java.lang.Object
-
- io.nem.symbol.catapult.builders.ProofGammaDto
-
- All Implemented Interfaces:
Serializer
public final class ProofGammaDto extends java.lang.Object implements Serializer
Proof gamma.
-
-
Constructor Summary
Constructors Constructor Description ProofGammaDto(java.io.DataInputStream stream)Constructor - Creates an object from stream.ProofGammaDto(java.nio.ByteBuffer proofGamma)Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.nio.ByteBuffergetProofGamma()Gets Proof gamma.intgetSize()Gets the size of the object.static ProofGammaDtoloadFromBinary(java.io.DataInputStream stream)Creates an instance of ProofGammaDto from a stream.byte[]serialize()Serializes an object to bytes.
-
-
-
Constructor Detail
-
ProofGammaDto
public ProofGammaDto(java.nio.ByteBuffer proofGamma)
Constructor.- Parameters:
proofGamma- Proof gamma.
-
ProofGammaDto
public ProofGammaDto(java.io.DataInputStream stream)
Constructor - Creates an object from stream.- Parameters:
stream- Byte stream to use to serialize.
-
-
Method Detail
-
getProofGamma
public java.nio.ByteBuffer getProofGamma()
Gets Proof gamma.- Returns:
- Proof gamma.
-
getSize
public int getSize()
Gets the size of the object.- Specified by:
getSizein interfaceSerializer- Returns:
- Size in bytes.
-
loadFromBinary
public static ProofGammaDto loadFromBinary(java.io.DataInputStream stream)
Creates an instance of ProofGammaDto from a stream.- Parameters:
stream- Byte stream to use to serialize the object.- Returns:
- Instance of ProofGammaDto.
-
serialize
public byte[] serialize()
Serializes an object to bytes.- Specified by:
serializein interfaceSerializer- Returns:
- Serialized bytes.
-
-