public static enum Card.Color extends Enum<Card.Color> implements Predicate<Card>
Modifier and Type | Method and Description |
---|---|
static Predicate<Card.Color> |
is(Card.Color color)
|
boolean |
test(Card card) |
static Card.Color |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Card.Color[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Card.Color BLACK
public static final Card.Color RED
public static Predicate<Card.Color> is(Card.Color color)
color
- The Card.Color
.Predicate
public static Card.Color 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.Color[] values()
for (Card.Color c : Card.Color.values()) System.out.println(c);
Copyright © 2015–2020. All rights reserved.