Enum Constant and Description |
---|
ACE |
EIGHT |
FIVE |
FOUR |
JACK |
JOKER |
KING |
NINE |
QUEEN |
SEVEN |
SIX |
TEN |
THREE |
TWO |
Modifier and Type | Field and Description |
---|---|
static List<Card.Rank> |
ACE_HIGH
|
static List<Card.Rank> |
ACE_LOW
|
static Predicate<List<Card>> |
SAME
|
static Predicate<List<Card>> |
SEQUENCE
|
Modifier and Type | Method and Description |
---|---|
static Predicate<Card.Rank> |
is(Card.Rank rank)
|
static Card.Rank |
parse(String string)
|
boolean |
test(Card card) |
String |
toString() |
static Card.Rank |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Card.Rank[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static Card.Rank[] values()
for (Card.Rank c : Card.Rank.values()) System.out.println(c);
public static Card.Rank valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2015–2020 Allen D. Ball. All rights reserved.