public enum State extends Enum<State>
| Modifier and Type | Method and Description |
|---|---|
static State |
fromValue(String value) |
String |
getValue() |
String |
toString() |
static State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final State ACT
public static final State NSW
public static final State NT
public static final State QLD
public static final State SA
public static final State TAS
public static final State VIC
public static final State WA
public static State[] values()
for (State c : State.values()) System.out.println(c);
public static 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 getValue()
Copyright © 2020. All rights reserved.