Enum Class Rank

java.lang.Object
java.lang.Enum<Rank>
mapreduce.apps.cards.core.Rank
All Implemented Interfaces:
Serializable, Comparable<Rank>, Constable

public enum Rank extends Enum<Rank>
Author:
Dennis Cosgrove
  • Enum Constant Details

    • ACE

      public static final Rank ACE
    • KING

      public static final Rank KING
    • QUEEN

      public static final Rank QUEEN
    • JACK

      public static final Rank JACK
    • TEN

      public static final Rank TEN
    • NINE

      public static final Rank NINE
    • EIGHT

      public static final Rank EIGHT
    • SEVEN

      public static final Rank SEVEN
    • SIX

      public static final Rank SIX
    • FIVE

      public static final Rank FIVE
    • FOUR

      public static final Rank FOUR
    • THREE

      public static final Rank THREE
    • TWO

      public static final Rank TWO
  • Field Details

  • Method Details

    • values

      public static Rank[] 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 Rank 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
    • numericValue

      public int numericValue()
    • isNumericValuePresent

      public boolean isNumericValuePresent()
    • isNumericValueEmpty

      public boolean isNumericValueEmpty()
    • parse

      public static Rank parse(String text)