Enum Class CmpG.OpG

java.lang.Object
java.lang.Enum<CmpG.OpG>
org.basex.query.expr.CmpG.OpG
All Implemented Interfaces:
Serializable, Comparable<CmpG.OpG>, java.lang.constant.Constable
Enclosing class:
CmpG

public static enum CmpG.OpG extends Enum<CmpG.OpG>
Comparators.
  • Enum Constant Details

    • LE

      public static final CmpG.OpG LE
      General comparison: less or equal.
    • LT

      public static final CmpG.OpG LT
      General comparison: less.
    • GE

      public static final CmpG.OpG GE
      General comparison: greater of equal.
    • GT

      public static final CmpG.OpG GT
      General comparison: greater.
    • EQ

      public static final CmpG.OpG EQ
      General comparison: equal.
    • NE

      public static final CmpG.OpG NE
      General comparison: not equal.
  • Field Details

    • VALUES

      public static final CmpG.OpG[] VALUES
      Cached enums (faster).
    • name

      public final String name
      String representation.
    • opV

      public final CmpV.OpV opV
      Value comparison operator.
  • Method Details

    • values

      public static CmpG.OpG[] 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 CmpG.OpG 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
    • swap

      public abstract CmpG.OpG swap()
      Swaps the comparator.
      Returns:
      swapped comparator
    • invert

      public abstract CmpG.OpG invert()
      Inverts the comparator.
      Returns:
      inverted comparator
    • toString

      public String toString()
      Overrides:
      toString in class Enum<CmpG.OpG>