Enum Constant and Description |
---|
Back
Back side of the card.
|
Front
Front side of the card.
|
Modifier and Type | Method and Description |
---|---|
static CardSide |
fromString(String text)
Returns the CardSide enumeration for the specified text or null if no enumeration matches the specified text.
|
int |
getValue()
Returns the integer representation of the enumeration member.
|
static CardSide |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CardSide[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CardSide Front
public static final CardSide Back
public static CardSide[] values()
for (CardSide c : CardSide.values()) System.out.println(c);
public static CardSide 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 int getValue()
public static CardSide fromString(String text)
text
- Text representation of the specified CardSide enumeration member.
© 2016 ZIH Corp. All Rights Reserved.