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