Package dev.ioliver.enums
Enum Class Suits
- All Implemented Interfaces:
Serializable
,Comparable<Suits>
,Constable
The Suits enum represents the suits of playing cards.
Each suit 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 suit.getLabel()
Returns the label associated with the suit.getList()
Returns a list of all suits.static Suits
Returns the enum constant of this class with the specified name.static Suits[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
HEARTS
-
DIAMONDS
-
CLUBS
-
SPADES
-
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 suits.- Returns:
- A list of Suits enum values.
-
getLabel
Returns the label associated with the suit.- Returns:
- The label of the suit.
-
getImgReference
public org.opencv.core.Mat getImgReference()Returns the image reference for the suit.- Returns:
- The image reference as a Mat object.
-