Package org.symbol.sdk.symbol.models
Class Amount
- All Implemented Interfaces:
Comparable<Amount>,Serializer
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Amountdeserialize(ByteBuffer buffer) Deserializes an instance of this object from a byte payload.static AmountParses a raw value (Amount, number, or decimal/0x-hex string) into a Amount.
-
Field Details
-
SIZE
public static final int SIZE- See Also:
-
IS_SIGNED
public static final boolean IS_SIGNED- See Also:
-
-
Constructor Details
-
Amount
public Amount(long value) Creates a new Amount.- Parameters:
value- Value.
-
Amount
public Amount()Creates a new Amount.
-
-
Method Details
-
parse
- Amount.parse
- Parses a raw value (Amount, number, or decimal/0x-hex string) into a Amount.
- Parameters:
rawValue- Raw value.- Returns:
- Parsed value.
-
deserialize
- Amount.deserialize
- Deserializes an instance of this object from a byte payload.
- Parameters:
buffer- Output writer.- Returns:
- Deserialized object.
- Throws:
IndexOutOfBoundsException- if the buffer is truncated or a declared length overruns itIllegalArgumentException- if a field carries an invalid value (e.g. a reserved field or unknown discriminator)
-