public static enum Horse.Style extends Enum<Horse.Style>
Enum Constant and Description |
---|
BLACK_DOTS
Small black dots
|
NONE
No markings
|
WHITE
White socks or stripes
|
WHITE_DOTS
Round white dots
|
WHITEFIELD
Milky splotches
|
Modifier and Type | Method and Description |
---|---|
static Horse.Style |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Horse.Style[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Horse.Style NONE
public static final Horse.Style WHITE
public static final Horse.Style WHITEFIELD
public static final Horse.Style WHITE_DOTS
public static final Horse.Style BLACK_DOTS
public static Horse.Style[] values()
for (Horse.Style c : Horse.Style.values()) System.out.println(c);
public static Horse.Style 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.