Enum NumericMetadataFilter.Operator
- java.lang.Object
-
- java.lang.Enum<NumericMetadataFilter.Operator>
-
- com.norconex.importer.handler.filter.impl.NumericMetadataFilter.Operator
-
- All Implemented Interfaces:
Serializable
,Comparable<NumericMetadataFilter.Operator>
- Enclosing class:
- NumericMetadataFilter
public static enum NumericMetadataFilter.Operator extends Enum<NumericMetadataFilter.Operator>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EQUALS
GREATER_EQUAL
GREATER_THAN
LOWER_EQUAL
LOWER_THAN
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract boolean
evaluate(double fieldNumber, double conditionNumber)
static NumericMetadataFilter.Operator
getOperator(String op)
String
toString()
static NumericMetadataFilter.Operator
valueOf(String name)
Returns the enum constant of this type with the specified name.static NumericMetadataFilter.Operator[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
GREATER_THAN
public static final NumericMetadataFilter.Operator GREATER_THAN
-
GREATER_EQUAL
public static final NumericMetadataFilter.Operator GREATER_EQUAL
-
EQUALS
public static final NumericMetadataFilter.Operator EQUALS
-
LOWER_EQUAL
public static final NumericMetadataFilter.Operator LOWER_EQUAL
-
LOWER_THAN
public static final NumericMetadataFilter.Operator LOWER_THAN
-
-
Method Detail
-
values
public static NumericMetadataFilter.Operator[] 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 (NumericMetadataFilter.Operator c : NumericMetadataFilter.Operator.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static NumericMetadataFilter.Operator 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 nameNullPointerException
- if the argument is null
-
getOperator
public static NumericMetadataFilter.Operator getOperator(String op)
-
toString
public String toString()
- Overrides:
toString
in classEnum<NumericMetadataFilter.Operator>
-
evaluate
public abstract boolean evaluate(double fieldNumber, double conditionNumber)
-
-