Package model.cellule

Enum Class CellState

java.lang.Object
java.lang.Enum<CellState>
model.cellule.CellState
All Implemented Interfaces:
Serializable, Comparable<CellState>, Constable

public enum CellState extends Enum<CellState>
Tout les etats possible pour la manipulation de cellules
  • Enum Constant Details

    • LIVE

      public static final CellState LIVE
      La cellule est vivante
    • DIE

      public static final CellState DIE
      La cellule est morte ou meur
    • BIRTH

      public static final CellState BIRTH
      La cellule née
  • Constructor Details

    • CellState

      private CellState()
  • Method Details

    • values

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