java.lang.Object
java.lang.Enum<Flip>
com.gtnewhorizon.structurelib.alignment.enumerable.Flip
All Implemented Interfaces:
Serializable, Comparable<Flip>, Constable

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

    • NONE

      public static final Flip NONE
    • HORIZONTAL

      public static final Flip HORIZONTAL
    • VERTICAL

      public static final Flip VERTICAL
    • BOTH

      public static final Flip BOTH
  • Field Details

    • VALUES

      public static final Flip[] VALUES
  • Method Details

    • values

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

      public int getIndex()
    • getOpposite

      public Flip getOpposite()
    • getName2

      public String getName2()
    • byName

      public static Flip byName(String name)
    • byIndex

      public static Flip byIndex(int index)
    • random

      public static Flip random(@Nonnull Random rand)
    • toString

      public String toString()
      Overrides:
      toString in class Enum<Flip>
    • getName

      public String getName()
    • isNotFlipped

      public boolean isNotFlipped()
    • isBothFlipped

      public boolean isBothFlipped()
    • isHorizontallyFlipped

      public boolean isHorizontallyFlipped()
    • isVerticallyFliped

      public boolean isVerticallyFliped()