- All Implemented Interfaces:
Serializable,Comparable<TokenType>,Constable
Possible Token Types (IWA Compatibility).
Apart from fungible and non-fungible, Tokens can have either a common or unique representation. This distinction might seem subtle, but it is important when considering how tokens can be traced and if they can have isolated and unique properties.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionInterchangeable value with one another, where any quantity of them has the same value as another equal quantity if they are in the same class.Unique, not interchangeable with other tokens of the same type as they typically have different values. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiontoString()(package private) static TokenTypeWhat type are we.static TokenTypeReturns the enum constant of this class with the specified name.static TokenType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FUNGIBLE_COMMON
Interchangeable value with one another, where any quantity of them has the same value as another equal quantity if they are in the same class. Share a single set of properties, not distinct from one another. Simply represented as a balance or quantity to a given Hedera account. -
NON_FUNGIBLE_UNIQUE
Unique, not interchangeable with other tokens of the same type as they typically have different values. Individually traced and can carry unique properties (e.g. serial number).
-
-
Field Details
-
code
-
-
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
-
valueOf
What type are we.- Parameters:
code- the token type in question- Returns:
- the token type
-
toString
-
toProtobuf
-