public enum FilterItemComparator extends Enum<FilterItemComparator>
Enum Constant and Description |
---|
contains |
equal |
excludes |
higher |
higherOrEqual |
lower |
lowerOrEqual |
matches |
Modifier and Type | Field and Description |
---|---|
String |
description
The description to use.
|
String |
name
The symbol to use.
|
static String[] |
trueFalse
Array of possibilities used for a boolean value.
|
Modifier and Type | Method and Description |
---|---|
boolean |
passes(String threshold,
List<String> values)
Indicates whether a set of values 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.
|
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.
|
public static final FilterItemComparator equal
public static final FilterItemComparator higher
public static final FilterItemComparator lower
public static final FilterItemComparator higherOrEqual
public static final FilterItemComparator lowerOrEqual
public static final FilterItemComparator contains
public static final FilterItemComparator excludes
public static final FilterItemComparator matches
public final String name
public final String description
public static final String[] trueFalse
public static FilterItemComparator[] values()
for (FilterItemComparator c : FilterItemComparator.values()) System.out.println(c);
public static FilterItemComparator 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 passes(String threshold, String value)
threshold
- the threshold as stringvalue
- the value as stringpublic boolean passes(String threshold, List<String> values)
threshold
- the threshold as stringvalues
- list of valuespublic boolean passes(String threshold, String[] values)
threshold
- the threshold as stringvalues
- list of valuespublic String toString()
toString
in class Enum<FilterItemComparator>
Copyright © 2016. All rights reserved.