org.nak.cleaning.object
Enum Appearance
java.lang.Object
java.lang.Enum<Appearance>
org.nak.cleaning.object.Appearance
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<Appearance>
public enum Appearance
- extends java.lang.Enum<Appearance>
Method Summary |
static Appearance |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Appearance[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
Methods inherited from class java.lang.Enum |
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
LITTER
public static final Appearance LITTER
PILE
public static final Appearance PILE
CAN
public static final Appearance CAN
STATION
public static final Appearance STATION
DUSTBIN
public static final Appearance DUSTBIN
PUDDLE
public static final Appearance PUDDLE
NOTHING
public static final Appearance NOTHING
values
public static Appearance[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (Appearance c : Appearance.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static Appearance valueOf(java.lang.String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is null