Package nxt
Enum CurrencyType
- java.lang.Object
-
- java.lang.Enum<CurrencyType>
-
- nxt.CurrencyType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<CurrencyType>
public enum CurrencyType extends java.lang.Enum<CurrencyType>
Define and validate currency capabilities
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CLAIMABLE
CONTROLLABLE
Transfers are only allowed from/to issuer account
Only issuer account can publish exchange offerEXCHANGEABLE
Can be exchanged from/to NXTMINTABLE
Can be minted using proof of work algorithmNON_SHUFFLEABLE
Several accounts can shuffle their currency units and then distributed to recipientsRESERVABLE
Can be reserved before the currency is active, reserve is distributed to founders once the currency becomes active
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CurrencyType
get(int code)
int
getCode()
static CurrencyType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static CurrencyType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EXCHANGEABLE
public static final CurrencyType EXCHANGEABLE
Can be exchanged from/to NXT
-
CONTROLLABLE
public static final CurrencyType CONTROLLABLE
Transfers are only allowed from/to issuer account
Only issuer account can publish exchange offer
-
RESERVABLE
public static final CurrencyType RESERVABLE
Can be reserved before the currency is active, reserve is distributed to founders once the currency becomes active
-
CLAIMABLE
public static final CurrencyType CLAIMABLE
-
MINTABLE
public static final CurrencyType MINTABLE
Can be minted using proof of work algorithm
-
NON_SHUFFLEABLE
public static final CurrencyType NON_SHUFFLEABLE
Several accounts can shuffle their currency units and then distributed to recipients
-
-
Method Detail
-
values
public static CurrencyType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CurrencyType c : CurrencyType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CurrencyType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getCode
public int getCode()
-
get
public static CurrencyType get(int code)
-
-