public static enum Account.State extends Enum<Account.State>
Enum Constant and Description |
---|
DISABLED |
ENABLED |
LOCKED |
UNRECOGNIZED |
Modifier and Type | Method and Description |
---|---|
static Account.State |
fromValue(String state) |
String |
toString() |
static Account.State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Account.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Account.State ENABLED
public static final Account.State DISABLED
public static final Account.State LOCKED
public static final Account.State UNRECOGNIZED
public static Account.State[] values()
for (Account.State c : Account.State.values()) System.out.println(c);
public static Account.State 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<Account.State>
public static Account.State fromValue(String state)
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.