Package io.token
Enum TokenClient.TokenCluster
- java.lang.Object
-
- java.lang.Enum<TokenClient.TokenCluster>
-
- io.token.TokenClient.TokenCluster
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<TokenClient.TokenCluster>
- Enclosing class:
- TokenClient
public static enum TokenClient.TokenCluster extends java.lang.Enum<TokenClient.TokenCluster>
Defines Token cluster to connect to.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BETA
CUSTOM
DEVELOPMENT
PERFORMANCE
PRODUCTION
SANDBOX
STAGING
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
url()
static TokenClient.TokenCluster
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static TokenClient.TokenCluster[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PRODUCTION
public static final TokenClient.TokenCluster PRODUCTION
-
BETA
public static final TokenClient.TokenCluster BETA
-
SANDBOX
public static final TokenClient.TokenCluster SANDBOX
-
STAGING
public static final TokenClient.TokenCluster STAGING
-
PERFORMANCE
public static final TokenClient.TokenCluster PERFORMANCE
-
DEVELOPMENT
public static final TokenClient.TokenCluster DEVELOPMENT
-
CUSTOM
public static final TokenClient.TokenCluster CUSTOM
-
-
Method Detail
-
values
public static TokenClient.TokenCluster[] 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 (TokenClient.TokenCluster c : TokenClient.TokenCluster.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TokenClient.TokenCluster 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
-
url
public java.lang.String url()
-
-