Enum FilterItemComparator
- All Implemented Interfaces:
Serializable
,Comparable<FilterItemComparator>
,java.lang.constant.Constable
public enum FilterItemComparator extends Enum<FilterItemComparator>
Comparators for filter items.
- Author:
- Marc Vaudel
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description contains
equal
excludes
higher
higherOrEqual
lower
lowerOrEqual
matches
-
Field Summary
-
Method Summary
Modifier and Type Method Description boolean
passes(String threshold, double value)
Indicates whether a given value passes a threshold using this comparator.boolean
passes(String threshold, String value)
Indicates whether a given value passes a threshold using this comparator.boolean
passes(String threshold, String[] values)
Indicates whether a set of values passes a threshold using this comparator.boolean
passes(String threshold, Collection<String> values)
Indicates whether a set of values passes a threshold using this comparator.boolean
passes(String threshold, java.util.stream.Stream<String> values)
Indicates whether a set of values passes a threshold using this comparator.String
toString()
static FilterItemComparator
valueOf(String name)
Returns 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
-
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:
toString
in classEnum<FilterItemComparator>
-