Modifier and Type | Method and Description |
---|---|
Card.Color |
getColor()
Method to get the
Card.Suit Card.Color . |
static Predicate<Card.Suit> |
is(Card.Suit suit)
|
static Card.Suit |
parse(String string)
|
boolean |
test(Card card) |
String |
toString() |
static Card.Suit |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Card.Suit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public Card.Color getColor()
Card.Suit
Card.Color
.Card.Color
public static Card.Suit 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 nullpublic static Card.Suit[] values()
for (Card.Suit c : Card.Suit.values()) System.out.println(c);
Copyright © 2015–2020. All rights reserved.