public static enum User.StateType extends Enum<User.StateType>
Enum Constant and Description |
---|
ACTIVE |
DEACTIVATED |
Modifier and Type | Method and Description |
---|---|
static User.StateType |
forValue(String value)
Generate a StateType from a string.
|
String |
toString() |
static User.StateType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static User.StateType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final User.StateType ACTIVE
public static final User.StateType DEACTIVATED
public static User.StateType[] values()
for (User.StateType c : User.StateType.values()) System.out.println(c);
public static User.StateType 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 String toString()
toString
in class Enum<User.StateType>
public static User.StateType forValue(String value)
value
- string valueCopyright © 2019 Twilio, Inc. All Rights Reserved.