Enum Class TokenSupplyType

java.lang.Object
java.lang.Enum<TokenSupplyType>
com.hedera.hashgraph.sdk.proto.TokenSupplyType
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 Constants
    Enum Constant
    Description
    * 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

    Fields
    Modifier and Type
    Field
    Description
    static 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 Type
    Method
    Description
    forNumber(int value)
     
    final int
     
    static com.google.protobuf.Internal.EnumLiteMap<TokenSupplyType>
     
    static com.google.protobuf.Internal.EnumVerifier
     
    valueOf(int value)
    Deprecated.
    Returns the enum constant of this class with the specified name.
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • INFINITE

      public static final TokenSupplyType 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

      public static final TokenSupplyType 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

      public static final TokenSupplyType 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

      public static TokenSupplyType[] 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

      public static TokenSupplyType valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getNumber

      public final int getNumber()
      Specified by:
      getNumber in interface com.google.protobuf.Internal.EnumLite
    • valueOf

      @Deprecated public static TokenSupplyType valueOf(int value)
      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 name
      NullPointerException - if the argument is null
    • forNumber

      public static TokenSupplyType forNumber(int value)
    • internalGetValueMap

      public static com.google.protobuf.Internal.EnumLiteMap<TokenSupplyType> internalGetValueMap()
    • internalGetVerifier

      public static com.google.protobuf.Internal.EnumVerifier internalGetVerifier()