Enum Class CardDistribution
- All Implemented Interfaces:
Serializable, Comparable<CardDistribution>, Constable
This Enum class represents the distribution of the card of the Skyjo game
conform of the rule.
- Version:
- 1.10
- Author:
- Ussel Sabbat
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionintgetCount()Getter The number of occurence of this categorie of cardintgetValue()Getter the value of the cardstatic CardDistributionReturns the enum constant of this class with the specified name.static CardDistribution[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CARD_1
-
CARD_2
-
CARD_3
-
CARD_4
-
CARD_5
-
CARD_6
-
CARD_7
-
CARD_8
-
CARD_9
-
CARD_10
-
CARD_11
-
CARD_12
-
CARD_0
-
CARD_NEGATIVE_1
-
CARD_NEGATIVE_2
-
-
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
-
getValue
public int getValue()Getter the value of the card- Returns:
- int
-
getCount
public int getCount()Getter The number of occurence of this categorie of card- Returns:
- int
-