@Status(stage=DEVELOPMENT, unitTests=ABSENT) @Review(by="Kees Schotanus", at="2009-11-08", reason="Initial review") public enum Phase extends Enum<Phase>
| Modifier and Type | Class and Description |
|---|---|
static class |
Phase.Transition
Transition from one Phase to another.
|
| Enum Constant and Description |
|---|
GAS
Gas state.
|
LIQUID
Liquid state.
|
PLASMA
Plasma.
|
SOLID
Solid state.
|
| Modifier and Type | Method and Description |
|---|---|
static Phase |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Phase[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Phase SOLID
public static final Phase LIQUID
public static final Phase GAS
public static final Phase PLASMA
public static Phase[] values()
for (Phase c : Phase.values()) System.out.println(c);
public static Phase 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 nullCopyright © 2008–2017. All rights reserved.