public static enum Card.Ranks extends java.lang.Enum<Card.Ranks>
| Enum Constant and Description |
|---|
ace |
eight |
five |
four |
jack |
king |
nine |
queen |
seven |
six |
ten |
three |
two |
| Modifier and Type | Method and Description |
|---|---|
static Card.Ranks |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Card.Ranks[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Card.Ranks ace
public static final Card.Ranks two
public static final Card.Ranks three
public static final Card.Ranks four
public static final Card.Ranks five
public static final Card.Ranks six
public static final Card.Ranks seven
public static final Card.Ranks eight
public static final Card.Ranks nine
public static final Card.Ranks ten
public static final Card.Ranks jack
public static final Card.Ranks queen
public static final Card.Ranks king
public static Card.Ranks[] values()
for (Card.Ranks c : Card.Ranks.values()) System.out.println(c);
public static Card.Ranks 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