Enum FilterItemComparator
- All Implemented Interfaces:
Serializable,Comparable<FilterItemComparator>,java.lang.constant.Constable
Comparators for filter items.
- Author:
- Marc Vaudel, Harald Barsnes
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether a given value passes a threshold using this comparator.booleanIndicates whether a given value passes a threshold using this comparator.booleanIndicates whether a set of values passes a threshold using this comparator.booleanpasses(String threshold, Collection<String> values) Indicates whether a set of values passes a threshold using this comparator.booleanIndicates whether a set of values passes a threshold using this comparator.toString()static FilterItemComparatorReturns the enum constant of this type with the specified name.static FilterItemComparator[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
equal
-
higher
-
lower
-
higherOrEqual
-
lowerOrEqual
-
contains
-
excludes
-
matches
-
-
Field Details
-
name
The symbol to use. -
description
The description to use. -
trueFalse
Array of possibilities used for a boolean value.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
passes
Indicates whether a given value passes a threshold using this comparator.- Parameters:
threshold- the threshold as stringvalue- the value as string- Returns:
- a boolean indicating whether a given value passes a threshold using this comparator
-
passes
Indicates whether a given value passes a threshold using this comparator.- Parameters:
threshold- the threshold as stringvalue- the value as string- Returns:
- a boolean indicating whether a given value passes a threshold using this comparator
-
passes
Indicates whether a set of values passes a threshold using this comparator.- Parameters:
threshold- the threshold as stringvalues- list of values- Returns:
- a boolean indicating whether a given value passes a threshold using this comparator
-
passes
Indicates whether a set of values passes a threshold using this comparator.- Parameters:
threshold- the threshold as stringvalues- list of values- Returns:
- a boolean indicating whether a given value passes a threshold using this comparator
-
passes
Indicates whether a set of values passes a threshold using this comparator.- Parameters:
threshold- the threshold as stringvalues- list of values- Returns:
- a boolean indicating whether a given value passes a threshold using this comparator
-
toString
- Overrides:
toStringin classEnum<FilterItemComparator>
-