public enum Authority extends Enum<Authority>
| Modifier and Type | Class and Description |
|---|---|
static class |
Authority.Adapter
Converts a String containing authority codes to a List of Authority
values, and vice versa.
|
| Enum Constant and Description |
|---|
APPEARANCE |
BORDER_CONTROL |
COMMUNICATIONS |
EMBASSIES |
EXECUTIVE |
POLLS |
WORLD_ASSEMBLY |
| Modifier and Type | Method and Description |
|---|---|
static Authority |
fromChar(char authCode)
Returns the Authority correspondong to the specified authority code.
|
char |
toChar()
Returns the underlying authority code.
|
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 EXECUTIVE
public static final Authority WORLD_ASSEMBLY
public static final Authority APPEARANCE
public static final Authority BORDER_CONTROL
public static final Authority COMMUNICATIONS
public static final Authority EMBASSIES
public static final Authority POLLS
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 fromChar(char authCode)
authCode - the specified authority code.public char toChar()
Copyright © 2017. All rights reserved.