Package io.nem.symbol.catapult.builders
Class NamespaceIdDto
- java.lang.Object
-
- io.nem.symbol.catapult.builders.NamespaceIdDto
-
- All Implemented Interfaces:
Serializer
public final class NamespaceIdDto extends java.lang.Object implements Serializer
Namespace id.
-
-
Constructor Summary
Constructors Constructor Description NamespaceIdDto(long namespaceId)Constructor.NamespaceIdDto(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 longgetNamespaceId()Gets Namespace id.intgetSize()Gets the size of the object.static NamespaceIdDtoloadFromBinary(java.io.DataInputStream stream)Creates an instance of NamespaceIdDto from a stream.byte[]serialize()Serializes an object to bytes.
-
-
-
Method Detail
-
getNamespaceId
public long getNamespaceId()
Gets Namespace id.- Returns:
- Namespace id.
-
getSize
public int getSize()
Gets the size of the object.- Specified by:
getSizein interfaceSerializer- Returns:
- Size in bytes.
-
loadFromBinary
public static NamespaceIdDto loadFromBinary(java.io.DataInputStream stream)
Creates an instance of NamespaceIdDto from a stream.- Parameters:
stream- Byte stream to use to serialize the object.- Returns:
- Instance of NamespaceIdDto.
-
serialize
public byte[] serialize()
Serializes an object to bytes.- Specified by:
serializein interfaceSerializer- Returns:
- Serialized bytes.
-
-