Package dev.ioliver.enums
Enum Class Ranks
- All Implemented Interfaces:
Serializable
,Comparable<Ranks>
,Constable
The Ranks enum represents the ranks of playing cards.
Each rank has an associated image reference and label.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.opencv.core.Mat
Returns the image reference for the rank.getLabel()
Returns the label associated with the rank.getList()
Returns a list of all ranks.static Ranks
Returns the enum constant of this class with the specified name.static Ranks[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
N2
-
N3
-
N4
-
N5
-
N6
-
N7
-
N8
-
N9
-
N10
-
J
-
Q
-
K
-
A
-
JOKER
-
-
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
-
getList
Returns a list of all ranks.- Returns:
- A list of Ranks enum values.
-
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.
-