de.flothow.jago.netobj
Enum Spielertyp
java.lang.Object
java.lang.Enum<Spielertyp>
de.flothow.jago.netobj.Spielertyp
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<Spielertyp>
public enum Spielertyp
- extends java.lang.Enum<Spielertyp>
|
Method Summary |
static Spielertyp |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Spielertyp[] |
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 |
LokalerSpieler
public static final Spielertyp LokalerSpieler
LokalerAgent
public static final Spielertyp LokalerAgent
FernerSpieler
public static final Spielertyp FernerSpieler
FernerAgent
public static final Spielertyp FernerAgent
values
public static Spielertyp[] 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 (Spielertyp c : Spielertyp.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static Spielertyp 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