Enum FilterOperation
- java.lang.Object
-
- java.lang.Enum<FilterOperation>
-
- de.digitalcollections.model.list.filtering.FilterOperation
-
- All Implemented Interfaces:
Serializable
,Comparable<FilterOperation>
public enum FilterOperation extends Enum<FilterOperation>
Available filter operationsMapping operation abbreviation to filter operation Symbol Operation Example filter query param eq equals city=eq:Munich eq_notset equals or not set city=eq_notset:Munich neq not equals country=neq:de gt greater than amount=gt:10000 gt_notset greater than or not set presentationEnd=gt_notset:2020-10-06 gte greater than or equals amount=gte:10000 gte_notset greater than or equals or not set amount=gte_notset:10000 lt less than amount=lt:10000 lt_notset less than or not set amount=lt_notset:10000 lt_set less than and set amount=lt_set:10000 lte less than or equals to amount=lte:10000 lte_set less than or equals and set presentationStart=lte_set:2020-10-06 lte_notset less than or equals or not set presentationStart=lte_notset:2020-10-06 in in country=in:uk,usa,au nin not in country=nin:fr,de,nz btn between (inclusive) joiningDate=btn:2018-01-01,2016-01-01 like like firstName=like:John stw starts with firstName=stw:A set value exists (not null) firstName=set: notset value is not set (null) firstName=notset: References:
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FilterOperation.OperandCount
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FilterOperation
fromValue(String value)
FilterOperation.OperandCount
getOperandCount()
String
toString()
static FilterOperation
valueOf(String name)
Returns the enum constant of this type with the specified name.static FilterOperation[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EQUALS
public static final FilterOperation EQUALS
-
EQUALS_OR_NOT_SET
public static final FilterOperation EQUALS_OR_NOT_SET
-
NOT_EQUALS
public static final FilterOperation NOT_EQUALS
-
GREATER_THAN
public static final FilterOperation GREATER_THAN
-
GREATER_THAN_OR_NOT_SET
public static final FilterOperation GREATER_THAN_OR_NOT_SET
-
GREATER_THAN_OR_EQUAL_TO
public static final FilterOperation GREATER_THAN_OR_EQUAL_TO
-
GREATER_THAN_OR_EQUAL_TO_OR_NOT_SET
public static final FilterOperation GREATER_THAN_OR_EQUAL_TO_OR_NOT_SET
-
LESS_THAN
public static final FilterOperation LESS_THAN
-
LESS_THAN_AND_SET
public static final FilterOperation LESS_THAN_AND_SET
-
LESS_THAN_OR_NOT_SET
public static final FilterOperation LESS_THAN_OR_NOT_SET
-
LESS_THAN_OR_EQUAL_TO
public static final FilterOperation LESS_THAN_OR_EQUAL_TO
-
LESS_THAN_OR_EQUAL_TO_AND_SET
public static final FilterOperation LESS_THAN_OR_EQUAL_TO_AND_SET
-
LESS_THAN_OR_EQUAL_TO_OR_NOT_SET
public static final FilterOperation LESS_THAN_OR_EQUAL_TO_OR_NOT_SET
-
IN
public static final FilterOperation IN
-
NOT_IN
public static final FilterOperation NOT_IN
-
BETWEEN
public static final FilterOperation BETWEEN
-
CONTAINS
public static final FilterOperation CONTAINS
-
NOT_SET
public static final FilterOperation NOT_SET
-
SET
public static final FilterOperation SET
-
STARTS_WITH
public static final FilterOperation STARTS_WITH
-
-
Method Detail
-
values
public static FilterOperation[] 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 (FilterOperation c : FilterOperation.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FilterOperation 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
-
fromValue
public static FilterOperation fromValue(String value)
-
getOperandCount
public FilterOperation.OperandCount getOperandCount()
-
toString
public String toString()
- Overrides:
toString
in classEnum<FilterOperation>
-
-