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