- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,Serializable,Comparable<TokenSupplyType>,Constable
@Generated
public enum TokenSupplyType
extends Enum<TokenSupplyType>
implements com.google.protobuf.Internal.EnumLite
* Possible Token Supply Types (IWA Compatibility). This `enum` indicates the limit of tokens that can exist during the lifetime of a token definition. The "infinite" supply is only theoretically infinite, as it is still limited to the magnitude of a 64-bit signed integer. A "finite" supply is further limited to a value specified when the token is created (or updated, if not immutable).Protobuf enum
proto.TokenSupplyType-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription* A limited supply.<br/> This indicates that tokens of this type have an upper bound of `maxSupply`.<br/> The maximum supply SHALL be provided on token creation, but MAY be changed thereafter if the token has an `admin_key` set.* An unlimited supply.<br/> This indicates that tokens of this type have an upper bound of Long.MAX_VALUE.<br/> The supply is accounted in the smallest units of the token (i.e. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int* A limited supply.<br/> This indicates that tokens of this type have an upper bound of `maxSupply`.<br/> The maximum supply SHALL be provided on token creation, but MAY be changed thereafter if the token has an `admin_key` set.static final int* An unlimited supply.<br/> This indicates that tokens of this type have an upper bound of Long.MAX_VALUE.<br/> The supply is accounted in the smallest units of the token (i.e. -
Method Summary
Modifier and TypeMethodDescriptionstatic TokenSupplyTypeforNumber(int value) final intstatic com.google.protobuf.Internal.EnumLiteMap<TokenSupplyType> static com.google.protobuf.Internal.EnumVerifierstatic TokenSupplyTypevalueOf(int value) Deprecated.static TokenSupplyTypeReturns the enum constant of this class with the specified name.static TokenSupplyType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INFINITE
* An unlimited supply.<br/> This indicates that tokens of this type have an upper bound of Long.MAX_VALUE.<br/> The supply is accounted in the smallest units of the token (i.e. 10<sup>-`decimals`</sup> whole tokens)
INFINITE = 0; -
FINITE
* A limited supply.<br/> This indicates that tokens of this type have an upper bound of `maxSupply`.<br/> The maximum supply SHALL be provided on token creation, but MAY be changed thereafter if the token has an `admin_key` set.
FINITE = 1; -
UNRECOGNIZED
-
-
Field Details
-
INFINITE_VALUE
public static final int INFINITE_VALUE* An unlimited supply.<br/> This indicates that tokens of this type have an upper bound of Long.MAX_VALUE.<br/> The supply is accounted in the smallest units of the token (i.e. 10<sup>-`decimals`</sup> whole tokens)
INFINITE = 0;- See Also:
-
FINITE_VALUE
public static final int FINITE_VALUE* A limited supply.<br/> This indicates that tokens of this type have an upper bound of `maxSupply`.<br/> The maximum supply SHALL be provided on token creation, but MAY be changed thereafter if the token has an `admin_key` set.
FINITE = 1;- See Also:
-
-
Method Details
-
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
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
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite
-
valueOf
Deprecated.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:
value- 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
-
forNumber
-
internalGetValueMap
-
internalGetVerifier
public static com.google.protobuf.Internal.EnumVerifier internalGetVerifier()
-