Enum CmpV.OpV

    • Enum Constant Detail

      • LE

        public static final CmpV.OpV LE
        Item comparison: less or equal.
      • LT

        public static final CmpV.OpV LT
        Item comparison: less.
      • GE

        public static final CmpV.OpV GE
        Item comparison: greater of equal.
      • GT

        public static final CmpV.OpV GT
        Item comparison: greater.
      • EQ

        public static final CmpV.OpV EQ
        Item comparison: equal.
      • NE

        public static final CmpV.OpV NE
        Item comparison: not equal.
    • Field Detail

      • VALUES

        public static final CmpV.OpV[] VALUES
        Cached enums (faster).
      • name

        public final String name
        String representation.
    • Method Detail

      • values

        public static CmpV.OpV[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (CmpV.OpV c : CmpV.OpV.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static CmpV.OpV valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
        NullPointerException - if the argument is null
      • eval

        public abstract boolean eval​(Item item1,
                                     Item item2,
                                     Collation coll,
                                     StaticContext sc,
                                     InputInfo ii)
                              throws QueryException
        Evaluates the expression.
        Parameters:
        item1 - first item
        item2 - second item
        coll - collation (can be null)
        sc - static context
        ii - input info
        Returns:
        result
        Throws:
        QueryException - query exception
      • swap

        public abstract CmpV.OpV swap()
        Swaps the comparator.
        Returns:
        swapped comparator
      • invert

        public abstract CmpV.OpV invert()
        Inverts the comparator.
        Returns:
        inverted comparator
      • general

        public abstract CmpG.OpG general()
        Returns the general comparator.
        Returns:
        comparator