Package org.symbol.sdk.symbol.models
Enum Class MosaicSupplyChangeAction
- All Implemented Interfaces:
Serializable,Comparable<MosaicSupplyChangeAction>,Constable,Serializer
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic MosaicSupplyChangeActiondeserialize(ByteBuffer buffer) Deserializes an instance of this object from a byte payload.static MosaicSupplyChangeActionfromValue(int value) Creates an instance from its underlying numeric value.intgetValue()Gets the value field.static MosaicSupplyChangeActionParses a raw value into an instance.byte[]Serializes this object to bytes.intsize()Calculates the size of the object.inttoJson()Converts this object to a JSON-serializable representation.toString()Returns a string representation of this object.static MosaicSupplyChangeActionReturns the enum constant of this class with the specified name.static MosaicSupplyChangeAction[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DECREASE
-
INCREASE
-
-
Method Details
-
values
- MosaicSupplyChangeAction.values
- Returns an array containing the constants of this enum class, in the order they are declared.
- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
- MosaicSupplyChangeAction.valueOf
- Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
public int getValue()- MosaicSupplyChangeAction.getValue
- Gets the value field.
- Returns:
- The value field.
-
fromValue
- MosaicSupplyChangeAction.fromValue
- Creates an instance from its underlying numeric value.
- Parameters:
value- Value.- Returns:
- Instance corresponding to the numeric value.
-
parse
- MosaicSupplyChangeAction.parse
- Parses a raw value into an instance.
- Parameters:
rawValue- Raw value to parse.- Returns:
- Parsed instance.
-
size
public int size()- MosaicSupplyChangeAction.size
- Calculates the size of the object.
- Specified by:
sizein interfaceSerializer- Returns:
- Size of this object in bytes.
-
deserialize
- MosaicSupplyChangeAction.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)
-
serialize
public byte[] serialize()- MosaicSupplyChangeAction.serialize
- Serializes this object to bytes.
- Specified by:
serializein interfaceSerializer- Returns:
- Serialized bytes.
-
toString
- MosaicSupplyChangeAction.toString
- Returns a string representation of this object.
- Overrides:
toStringin classEnum<MosaicSupplyChangeAction>- Returns:
- String representation of this object.
-
toJson
public int toJson()- MosaicSupplyChangeAction.toJson
- Converts this object to a JSON-serializable representation.
- Returns:
- JSON-serializable representation of this object.
-