public static enum FluidTankComponent.Action extends java.lang.Enum<FluidTankComponent.Action>
| Modifier and Type | Method and Description |
|---|---|
boolean |
canDrain() |
boolean |
canFill() |
static FluidTankComponent.Action |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static FluidTankComponent.Action[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FluidTankComponent.Action FILL
public static final FluidTankComponent.Action DRAIN
public static final FluidTankComponent.Action BOTH
public static final FluidTankComponent.Action NONE
public static FluidTankComponent.Action[] values()
for (FluidTankComponent.Action c : FluidTankComponent.Action.values()) System.out.println(c);
public static FluidTankComponent.Action valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic boolean canFill()
public boolean canDrain()