Enum ConditionFactory.Op

    • Constructor Detail

      • Op

        private Op​(IntFunction<Boolean> comparatorResult)
        Create a new float operation that compares two float values
        Parameters:
        comparatorResult - A function to mapt the result of the comparison
      • Op

        private Op​(ConditionFactory.Op negate)
        Create a new Op by negating an other op.
        Parameters:
        negate - inverse operation
    • Method Detail

      • values

        public static ConditionFactory.Op[] 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 (ConditionFactory.Op c : ConditionFactory.Op.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ConditionFactory.Op 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 boolean eval​(String testString,
                            String prototypeString)
        Evaluates a value against a reference string.
        Parameters:
        testString - The value. May be null
        prototypeString - The reference string-
        Returns:
        true if and only if this operation matches for the given value/reference pair.