Package me.ramendev.expokert
Enum Class Suit
- All Implemented Interfaces:
Serializable,Comparable<Suit>,java.lang.constant.Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic Suitfrom(char character) Returns the suit that is notated with the provided character.final charReturns the character the represents this suit.static SuitReturns the enum constant of this class with the specified name.static Suit[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CLUBS
The clubs suit. -
SPADES
The spades suit. -
DIAMONDS
The diamonds suit. -
HEARTS
The hearts suit. -
WILD
The wild suit, only unique toWildcards.
-
-
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
-
from
Returns the suit that is notated with the provided character.- Parameters:
character- The character of the pip to be returned.- Returns:
- The suit with the provided character.
-
getCharacter
public final char getCharacter()Returns the character the represents this suit. This "character" in question is actually justname().charAt(0).- Returns:
- The character of the suit.
-