Package javatro.core
Enum Class PokerHand.HandType
- All Implemented Interfaces:
Serializable,Comparable<PokerHand.HandType>,Constable
- Enclosing class:
- PokerHand
Enumeration of poker hand types with associated base values and progression parameters. Each
hand type has: - Display name - Base chip value - Base multiplier value Level increments are
managed externally by
PlanetCard.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionintgetChips()Gets the base chip value before level adjustments.Gets the display name of the hand type.intGets the base multiplier value before level adjustments.static PokerHand.HandTypeReturns the enum constant of this class with the specified name.static PokerHand.HandType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FLUSH_FIVE
-
FLUSH_HOUSE
-
FIVE_OF_A_KIND
-
ROYAL_FLUSH
-
STRAIGHT_FLUSH
-
FOUR_OF_A_KIND
-
FULL_HOUSE
-
FLUSH
-
STRAIGHT
-
THREE_OF_A_KIND
-
TWO_PAIR
-
PAIR
-
HIGH_CARD
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getHandName
Gets the display name of the hand type.- Returns:
- Formal hand name
-
getChips
public int getChips()Gets the base chip value before level adjustments.- Returns:
- Base chips for this hand type
-
getMultiplier
public int getMultiplier()Gets the base multiplier value before level adjustments.- Returns:
- Base multiplier for this hand type
-