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