public static enum ExampleCoffeeMachine.Input extends Enum<ExampleCoffeeMachine.Input>
Modifier and Type | Method and Description |
---|---|
static ExampleCoffeeMachine.Input |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ExampleCoffeeMachine.Input[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ExampleCoffeeMachine.Input WATER
public static final ExampleCoffeeMachine.Input POD
public static final ExampleCoffeeMachine.Input BUTTON
public static final ExampleCoffeeMachine.Input CLEAN
public static ExampleCoffeeMachine.Input[] values()
for (ExampleCoffeeMachine.Input c : ExampleCoffeeMachine.Input.values()) System.out.println(c);
public static ExampleCoffeeMachine.Input 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 © 2014. All Rights Reserved.