java.io.Serializable
, java.lang.Comparable<Horse.Style>
public static enum Horse.Style extends java.lang.Enum<Horse.Style>
Enum Constant | 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 | Description |
---|---|---|
static Horse.Style |
valueOf(java.lang.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(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 nullCopyright © 2018. All rights reserved.