public enum FilterOperator extends Enum<FilterOperator>
Mathematical notation for defining ranges of floating point numbers is used as defined below:
[a,b] a closed range from value a to value b with the end-points a and b included in the range
(a,b) an open range from value a to value b with the end-points a and b not included in the range
[a,b) a half-open range from value a to value b with the end-point a included and end-point b not included in the range
(a,b] a half-open range from value a to value b with the end-point a not included and end-point b included in the range
Enum Constant and Description |
---|
ADVANCED_INDEX
Advanced-index
|
BOOLEAN_EXPRESSION
Boolean expression filter operator
|
EQUAL
Exact matches (=).
|
GREATER
Greater (>).
|
GREATER_OR_EQUAL
Greater or equal (>=).
|
IN_LIST_OF_VALUES
List of values using the 'in' operator
|
IS
Exact matches allowing null (is).
|
IS_NOT
Exact not matches allowing null (is not).
|
LESS
Less (<).
|
LESS_OR_EQUAL
Less or equal (<=).
|
NOT_EQUAL
Exact not matche (!=).
|
NOT_IN_LIST_OF_VALUES
Not-in list of values using the 'not in' operator
|
NOT_RANGE_CLOSED
Inverted-Range contains low and high endpoint, i.e.
|
NOT_RANGE_HALF_CLOSED
Inverted-Range includes high endpoint but not low endpoint, i.e.
|
NOT_RANGE_HALF_OPEN
Inverted-Range includes low endpoint but not high endpoint, i.e.
|
NOT_RANGE_OPEN
Inverted-Range contains neither endpoint, i.e.
|
RANGE_CLOSED
Range contains low and high endpoint, i.e.
|
RANGE_HALF_CLOSED
Range includes high endpoint but not low endpoint, i.e.
|
RANGE_HALF_OPEN
Range includes low endpoint but not high endpoint, i.e.
|
RANGE_OPEN
Range contains neither endpoint, i.e.
|
Modifier and Type | Method and Description |
---|---|
String |
getTextualOp() |
boolean |
isComparisonOperator()
Returns true for relational comparison operators which excludes the = equals operator, else returns false.
|
boolean |
isInvertedRangeOperator()
Returns true for inverted range operators, false if not an inverted range operator.
|
boolean |
isRangeOperator()
Returns true for all range operators, false if not a range operator.
|
static FilterOperator |
parseRangeOperator(boolean isInclusiveFirst,
boolean isInclusiveLast,
boolean isNot)
Parse the range operator from booleans describing whether the start or end values are exclusive.
|
FilterOperator |
reversedRelationalOp() |
static FilterOperator |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FilterOperator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FilterOperator EQUAL
public static final FilterOperator NOT_EQUAL
public static final FilterOperator IS
public static final FilterOperator IS_NOT
public static final FilterOperator LESS
public static final FilterOperator LESS_OR_EQUAL
public static final FilterOperator GREATER_OR_EQUAL
public static final FilterOperator GREATER
public static final FilterOperator RANGE_OPEN
public static final FilterOperator RANGE_CLOSED
public static final FilterOperator RANGE_HALF_OPEN
public static final FilterOperator RANGE_HALF_CLOSED
public static final FilterOperator NOT_RANGE_OPEN
public static final FilterOperator NOT_RANGE_CLOSED
public static final FilterOperator NOT_RANGE_HALF_OPEN
public static final FilterOperator NOT_RANGE_HALF_CLOSED
public static final FilterOperator IN_LIST_OF_VALUES
public static final FilterOperator NOT_IN_LIST_OF_VALUES
public static final FilterOperator ADVANCED_INDEX
public static final FilterOperator BOOLEAN_EXPRESSION
public static FilterOperator[] values()
for (FilterOperator c : FilterOperator.values()) System.out.println(c);
public static FilterOperator valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean isRangeOperator()
public boolean isInvertedRangeOperator()
public boolean isComparisonOperator()
public static FilterOperator parseRangeOperator(boolean isInclusiveFirst, boolean isInclusiveLast, boolean isNot)
isInclusiveFirst
- true if low endpoint is inclusive, false if notisInclusiveLast
- true if high endpoint is inclusive, false if notisNot
- is true if this is an inverted range, or false if a regular rangepublic String getTextualOp()
public FilterOperator reversedRelationalOp()