Enum Class CardDistribution

java.lang.Object
java.lang.Enum<CardDistribution>
ca.uqam.info.model.CardDistribution
All Implemented Interfaces:
Serializable, Comparable<CardDistribution>, Constable

public enum CardDistribution extends Enum<CardDistribution>
This Enum class represents the distribution of the card of the Skyjo game conform of the rule.
Version:
1.10
Author:
Ussel Sabbat
  • Enum Constant Details

  • Method Details

    • values

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