Package org.symbol.sdk.symbol.models
Class Height
- All Implemented Interfaces:
Comparable<Height>,Serializer
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Heightdeserialize(ByteBuffer buffer) Deserializes an instance of this object from a byte payload.static HeightParses a raw value (Height, number, or decimal/0x-hex string) into a Height.
-
Field Details
-
SIZE
public static final int SIZE- See Also:
-
IS_SIGNED
public static final boolean IS_SIGNED- See Also:
-
-
Constructor Details
-
Height
public Height(long value) Creates a new Height.- Parameters:
value- Value.
-
Height
public Height()Creates a new Height.
-
-
Method Details
-
parse
- Height.parse
- Parses a raw value (Height, number, or decimal/0x-hex string) into a Height.
- Parameters:
rawValue- Raw value.- Returns:
- Parsed value.
-
deserialize
- Height.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)
-