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