Enum Class TokenType

java.lang.Object
java.lang.Enum<TokenType>
com.hedera.hashgraph.sdk.proto.TokenType
All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite, Serializable, Comparable<TokenType>, Constable

@Generated public enum TokenType extends Enum<TokenType> implements com.google.protobuf.Internal.EnumLite
 *
 Possible Token Types (IWA Compatibility).

 Apart from fungible and non-fungible, Tokens can have either a common or
 unique representation. Furthermore, tokens can have intrinsic or referential
 value, and can be whole and indivisible or fractional.<br/>
 These distinction might seem subtle, but it is important when considering
 how tokens can be traced, used, transferred, and if they can have isolated
 unique properties.

 A few examples (these may not match enumerations below) using IWA taxonomy.
 <dl>
 <dt>fungible, whole, intrinsic, unique</dt>
 <dd>Physical fiat currency</dd>
 <dt>fungible, fractional, intrinsic, common</dt>
 <dd>bank balance fiat currency</dd>
 <dt>non-fungible, fractional, reference, unique</dt>
 <dd>"mutual" collectible/art/property ownership</dd>
 <dt>non-fungible, whole, intrinsic, unique</dt>
 <dd>Physical work of fine art</dd>
 <dt>non-fungible, whole, reference, unique</dt>
 <dd>Registered property title</dd>
 </dl>
 
Protobuf enum proto.TokenType
  • Enum Constant Details

    • FUNGIBLE_COMMON

      public static final TokenType FUNGIBLE_COMMON
       *
       A fungible/common token.<br/>
       Tokens of this type are interchangeable with one another, where any
       quantity of tokens has the same value as another equal quantity, if
       they are in the same class. Tokens share a single set of properties,
       and are not distinct from one another. Ownership is represented as a
       balance or quantity associated to a given account. Tokens may be
       divided into fractional tokens, within reasonable limits.
       <p>
       IWA taxonomy _fungible, fractional, intrinsic, common_
       
      FUNGIBLE_COMMON = 0;
    • NON_FUNGIBLE_UNIQUE

      public static final TokenType NON_FUNGIBLE_UNIQUE
       *
       A non-fungible/unique token.<br/>
       Tokens of this type are unique, and are not interchangeable with other
       tokens of the same type. Each token carries a serial number which is
       unique for that token, these tokens may have a different trade value
       for each individual token. The tokens are individually accounted and
       often carry additional unique properties. Tokens cannot be subdivided,
       and value is related to what the individual token represents.
       <p>
       IWA taxonomy _non-fungible, whole, reference, unique_
       
      NON_FUNGIBLE_UNIQUE = 1;
    • UNRECOGNIZED

      public static final TokenType UNRECOGNIZED
  • Field Details

    • FUNGIBLE_COMMON_VALUE

      public static final int FUNGIBLE_COMMON_VALUE
       *
       A fungible/common token.<br/>
       Tokens of this type are interchangeable with one another, where any
       quantity of tokens has the same value as another equal quantity, if
       they are in the same class. Tokens share a single set of properties,
       and are not distinct from one another. Ownership is represented as a
       balance or quantity associated to a given account. Tokens may be
       divided into fractional tokens, within reasonable limits.
       <p>
       IWA taxonomy _fungible, fractional, intrinsic, common_
       
      FUNGIBLE_COMMON = 0;
      See Also:
    • NON_FUNGIBLE_UNIQUE_VALUE

      public static final int NON_FUNGIBLE_UNIQUE_VALUE
       *
       A non-fungible/unique token.<br/>
       Tokens of this type are unique, and are not interchangeable with other
       tokens of the same type. Each token carries a serial number which is
       unique for that token, these tokens may have a different trade value
       for each individual token. The tokens are individually accounted and
       often carry additional unique properties. Tokens cannot be subdivided,
       and value is related to what the individual token represents.
       <p>
       IWA taxonomy _non-fungible, whole, reference, unique_
       
      NON_FUNGIBLE_UNIQUE = 1;
      See Also:
  • Method Details

    • values

      public static TokenType[] 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 TokenType 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 TokenType 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 TokenType forNumber(int value)
    • internalGetValueMap

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

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