Enum DateMetadataFilter.Operator
- java.lang.Object
-
- java.lang.Enum<DateMetadataFilter.Operator>
-
- com.norconex.importer.handler.filter.impl.DateMetadataFilter.Operator
-
- All Implemented Interfaces:
Serializable
,Comparable<DateMetadataFilter.Operator>
- Enclosing class:
- DateMetadataFilter
public static enum DateMetadataFilter.Operator extends Enum<DateMetadataFilter.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(ZonedDateTime fieldDate, ZonedDateTime conditionDate)
static DateMetadataFilter.Operator
getOperator(String op)
String
toString()
static DateMetadataFilter.Operator
valueOf(String name)
Returns the enum constant of this type with the specified name.static DateMetadataFilter.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 DateMetadataFilter.Operator GREATER_THAN
-
GREATER_EQUAL
public static final DateMetadataFilter.Operator GREATER_EQUAL
-
EQUALS
public static final DateMetadataFilter.Operator EQUALS
-
LOWER_EQUAL
public static final DateMetadataFilter.Operator LOWER_EQUAL
-
LOWER_THAN
public static final DateMetadataFilter.Operator LOWER_THAN
-
-
Method Detail
-
values
public static DateMetadataFilter.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 (DateMetadataFilter.Operator c : DateMetadataFilter.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 DateMetadataFilter.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 DateMetadataFilter.Operator getOperator(String op)
-
toString
public String toString()
- Overrides:
toString
in classEnum<DateMetadataFilter.Operator>
-
evaluate
public abstract boolean evaluate(ZonedDateTime fieldDate, ZonedDateTime conditionDate)
-
-