pt.ua.gboard.games
Enum Rank
java.lang.Object
java.lang.Enum<Rank>
pt.ua.gboard.games.Rank
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<Rank>
public enum Rank
- extends java.lang.Enum<Rank>
Method Summary |
static Rank |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Rank[] |
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 |
ACE
public static final Rank ACE
TWO
public static final Rank TWO
THREE
public static final Rank THREE
FOUR
public static final Rank FOUR
FIVE
public static final Rank FIVE
SIX
public static final Rank SIX
SEVEN
public static final Rank SEVEN
EIGHT
public static final Rank EIGHT
NINE
public static final Rank NINE
TEN
public static final Rank TEN
JACK
public static final Rank JACK
QUEEN
public static final Rank QUEEN
KING
public static final Rank KING
values
public static Rank[] 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 (Rank c : Rank.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static Rank 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