Enum Class TokenSupplyType

java.lang.Object
java.lang.Enum<TokenSupplyType>
com.hedera.hashgraph.sdk.TokenSupplyType
All Implemented Interfaces:
Serializable, Comparable<TokenSupplyType>, Constable

public enum TokenSupplyType extends Enum<TokenSupplyType>
Possible Token Supply Types (IWA Compatibility).

Indicates how many tokens can have during its lifetime.

See Hedera Documentation

  • Enum Constant Details

    • INFINITE

      public static final TokenSupplyType INFINITE
      Indicates that tokens of that type have an upper bound of Long.MAX_VALUE.
    • FINITE

      public static final TokenSupplyType FINITE
      Indicates that tokens of that type have an upper bound of maxSupply, provided on token creation.
  • Field Details

  • 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
    • valueOf

      static TokenSupplyType valueOf(TokenSupplyType code)
      What type are we.
      Parameters:
      code - the token supply type in question
      Returns:
      the token supply type
    • toString

      public String toString()
      Overrides:
      toString in class Enum<TokenSupplyType>
    • toProtobuf

      public TokenSupplyType toProtobuf()