Package javatro.core

Enum Class PokerHand.HandType

java.lang.Object
java.lang.Enum<PokerHand.HandType>
javatro.core.PokerHand.HandType
All Implemented Interfaces:
Serializable, Comparable<PokerHand.HandType>, Constable
Enclosing class:
PokerHand

public static enum PokerHand.HandType extends Enum<PokerHand.HandType>
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.
  • Enum Constant Details

  • Method Details

    • values

      public static PokerHand.HandType[] 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

      public static PokerHand.HandType valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getHandName

      public String 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