public static enum Dog.Color extends Enum<Dog.Color>
Modifier and Type | Method and Description |
---|---|
static Dog.Color |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Dog.Color[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Dog.Color WHITE
public static final Dog.Color BLACK
public static final Dog.Color BROWN
public static final Dog.Color MIX
public static Dog.Color[] values()
for (Dog.Color c : Dog.Color.values()) System.out.println(c);
public static Dog.Color 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 © 2015 John's Hopkins University, Engineering Programs for Professionals. All rights reserved.