public enum Authority extends Enum<Authority>
| Enum Constant and Description |
|---|
A
Appearance
|
B
Border Control
|
C
Communications
|
E
Embassies
|
P
Polls
|
W
World Assembly
|
X
Executive
|
| Modifier and Type | Method and Description |
|---|---|
static Authority |
getByAuthName(String authName)
Returns the Authority holding a specific authName.
|
String |
toString()
Return the underlying authority name.
|
static Authority |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Authority[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Authority X
public static final Authority W
public static final Authority A
public static final Authority B
public static final Authority C
public static final Authority E
public static final Authority P
public static Authority[] values()
for (Authority c : Authority.values()) System.out.println(c);
public static Authority 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 Authority getByAuthName(String authName)
authName - string to find the corresponding Authority ofCopyright © 2016. All rights reserved.