Enum Class Ranks

java.lang.Object
java.lang.Enum<Ranks>
dev.ioliver.enums.Ranks
All Implemented Interfaces:
Serializable, Comparable<Ranks>, Constable

public enum Ranks extends Enum<Ranks>
The Ranks enum represents the ranks of playing cards. Each rank has an associated image reference and label.
  • Enum Constant Details

    • N2

      public static final Ranks N2
    • N3

      public static final Ranks N3
    • N4

      public static final Ranks N4
    • N5

      public static final Ranks N5
    • N6

      public static final Ranks N6
    • N7

      public static final Ranks N7
    • N8

      public static final Ranks N8
    • N9

      public static final Ranks N9
    • N10

      public static final Ranks N10
    • J

      public static final Ranks J
    • Q

      public static final Ranks Q
    • K

      public static final Ranks K
    • A

      public static final Ranks A
    • JOKER

      public static final Ranks JOKER
  • Method Details

    • values

      public static Ranks[] 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 Ranks 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
    • getList

      public static List<Ranks> getList()
      Returns a list of all ranks.
      Returns:
      A list of Ranks enum values.
    • getLabel

      public String getLabel()
      Returns the label associated with the rank.
      Returns:
      The label of the rank.
    • getImgReference

      public org.opencv.core.Mat getImgReference()
      Returns the image reference for the rank.
      Returns:
      The image reference as a Mat object.