Enum Class LatticeNeighbourhood

java.lang.Object
java.lang.Enum<LatticeNeighbourhood>
org.woehlke.computer.kurzweil.tabs.cca.model.LatticeNeighbourhood
All Implemented Interfaces:
Serializable, Comparable<LatticeNeighbourhood>, Constable

public enum LatticeNeighbourhood extends Enum<LatticeNeighbourhood>
  • Enum Constant Details

    • VON_NEUMANN_NEIGHBORHOOD

      public static final LatticeNeighbourhood VON_NEUMANN_NEIGHBORHOOD
      https://en.wikipedia.org/wiki/Von_Neumann_neighborhood
    • MOORE_NEIGHBORHOOD

      public static final LatticeNeighbourhood MOORE_NEIGHBORHOOD
      https://en.wikipedia.org/wiki/Moore_neighborhood
    • WOEHLKE_NEIGHBORHOOD

      public static final LatticeNeighbourhood WOEHLKE_NEIGHBORHOOD
  • Method Details

    • values

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