public enum Council extends Enum<Council>
| Modifier and Type | Class and Description |
|---|---|
static class |
Council.Adapter
Converts an integer to a Council enum value and vice versa.
|
| Enum Constant and Description |
|---|
GENERAL_ASSEMBLY
The General Assembly
|
SECURITY_COUNCIL
The Security Council
|
| Modifier and Type | Method and Description |
|---|---|
static Council |
fromInt(int councilNumber)
Returns the Council instance that has the given council number.
|
int |
toInt()
Return the underlying council number.
|
static Council |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Council[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Council GENERAL_ASSEMBLY
public static final Council SECURITY_COUNCIL
public static Council[] values()
for (Council c : Council.values()) System.out.println(c);
public static Council 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 int toInt()
public static Council fromInt(int councilNumber)
councilNumber - the council numberCopyright © 2017. All rights reserved.