- 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-
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 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.* A non-fungible/unique token.<br/> Tokens of this type are unique, and are not interchangeable with other tokens of the same type. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int* 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.static final int* A non-fungible/unique token.<br/> Tokens of this type are unique, and are not interchangeable with other tokens of the same type. -
Method Summary
Modifier and TypeMethodDescriptionstatic TokenTypeforNumber(int value) final intstatic com.google.protobuf.Internal.EnumLiteMap<TokenType> static com.google.protobuf.Internal.EnumVerifierstatic TokenTypevalueOf(int value) Deprecated.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
* 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
* 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
-
-
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
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()
-