public static enum Hand.SortType extends java.lang.Enum<Hand.SortType>
Enum Constant and Description |
---|
POINTPRIORITY
Compare points.
|
RANKPRIORITY
Compare rank first, if same compare suit.
|
SUITPRIORITY
Compare suit first, if same compare rank.
|
Modifier and Type | Method and Description |
---|---|
static Hand.SortType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Hand.SortType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Hand.SortType RANKPRIORITY
public static final Hand.SortType SUITPRIORITY
public static final Hand.SortType POINTPRIORITY
public static Hand.SortType[] values()
for (Hand.SortType c : Hand.SortType.values()) System.out.println(c);
public static Hand.SortType 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