public enum TennisGender extends java.lang.Enum<TennisGender>
Enum Constant and Description |
---|
MEN_DOUBLE |
MEN_SINGLE |
MIXED_DOUBLE |
TEAM |
WOMEN_DOUBLE |
WOMEN_SINGLE |
Modifier and Type | Method and Description |
---|---|
static TennisGender |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TennisGender[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TennisGender MEN_SINGLE
public static final TennisGender WOMEN_SINGLE
public static final TennisGender WOMEN_DOUBLE
public static final TennisGender MEN_DOUBLE
public static final TennisGender TEAM
public static final TennisGender MIXED_DOUBLE
public static TennisGender[] values()
for (TennisGender c : TennisGender.values()) System.out.println(c);
public static TennisGender 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 null