public enum Council extends Enum<Council>
| Enum Constant and Description |
|---|
GENERAL_ASSEMBLY
The General Assembly
|
SECURITY_COUNCIL
The Security Council
|
| Modifier and Type | Method and Description |
|---|---|
static Council |
getByNumber(int councilNumber)
Returns the Council instance that has the given council number.
|
int |
getCouncilNumber()
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 getCouncilNumber()
public static Council getByNumber(int councilNumber)
councilNumber - the council numberCopyright © 2016. All rights reserved.