Enum Class Cmp

java.lang.Object
java.lang.Enum<Cmp>
me.sbasalaev.tybyco.builders.Cmp
All Implemented Interfaces:
Serializable, Comparable<Cmp>, Constable

public enum Cmp extends Enum<Cmp>
Comparison result.
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    The operands are equal.
    The first operand is greater than or equal to the second.
    The first operand is greater than the second.
    The first operand is less than or equal to the second.
    The first operand is less than the second.
    The operands are not equal.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns opposite comparison result.
    static Cmp
    Returns the enum constant of this class with the specified name.
    static Cmp[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • EQ

      public static final Cmp EQ
      The operands are equal.
    • NE

      public static final Cmp NE
      The operands are not equal.
    • LT

      public static final Cmp LT
      The first operand is less than the second.
    • LE

      public static final Cmp LE
      The first operand is less than or equal to the second.
    • GT

      public static final Cmp GT
      The first operand is greater than the second.
    • GE

      public static final Cmp GE
      The first operand is greater than or equal to the second.
  • Method Details

    • values

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

      public Cmp opposite()
      Returns opposite comparison result.