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