public enum TokenType extends Enum<TokenType>
| Enum Constant and Description |
|---|
_UNKNOWN
Unknown values will be mapped by this enum member
|
BILLING_AGREEMENT
The PayPal billing agreement ID.
|
| Modifier and Type | Method and Description |
|---|---|
static TokenType |
constructFromString(String toConvert)
Returns the enum member associated with the given string value.
|
static TokenType |
fromString(String toConvert)
Returns the enum member associated with the given string value.
|
String |
toString()
Get string representation of this enum.
|
static List<String> |
toValue(List<TokenType> toConvert)
Convert list of TokenType values to list of string values.
|
String |
value()
Returns the string value associated with the enum member.
|
static TokenType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TokenType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TokenType BILLING_AGREEMENT
public static final TokenType _UNKNOWN
public static TokenType[] values()
for (TokenType c : TokenType.values()) System.out.println(c);
public static TokenType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static TokenType constructFromString(String toConvert) throws IOException
toConvert - String value to get enum member.IOException - when provided value is not mapped to any enum member.public static TokenType fromString(String toConvert)
toConvert - String value to get enum member.public String value()
public String toString()
Copyright © 2025. All rights reserved.