@PSOperatorWrapper public class Comparators extends java.lang.Object
| Constructor and Description |
|---|
Comparators() |
| Modifier and Type | Method and Description |
|---|---|
static <TValue> Function<Item,java.lang.Boolean> |
eq(java.lang.String field,
TValue valueToCompare)
Check if the value of a field equals to a given value.
|
static Function<Item,java.lang.Boolean> |
gt(java.lang.String field,
java.lang.Number valueToCompare)
Check if the value of a field is greater than a given value.
|
static Function<Item,java.lang.Boolean> |
gte(java.lang.String field,
java.lang.Number valueToCompare)
Check if the value of a field is greater than or equal to a given value.
|
static Function<Item,java.lang.Boolean> |
lt(java.lang.String field,
java.lang.Number valueToCompare)
Check if the value of a field is less than a given value.
|
static Function<Item,java.lang.Boolean> |
lte(java.lang.String field,
java.lang.Number valueToCompare)
Check if the value of a field is less than or equal to a given value.
|
static <TValue> Function<Item,java.lang.Boolean> |
ne(java.lang.String field,
TValue valueToCompare)
Check if the value of a field is not equal to a given value.
|
public static <TValue> Function<Item,java.lang.Boolean> eq(java.lang.String field, TValue valueToCompare)
TValue - the type of valuefield - the name of the field to comparevalueToCompare - the value to compare withpublic static <TValue> Function<Item,java.lang.Boolean> ne(java.lang.String field, TValue valueToCompare)
TValue - the type of valuefield - the name of the field to comparevalueToCompare - the value to compare withpublic static Function<Item,java.lang.Boolean> gt(java.lang.String field, java.lang.Number valueToCompare)
field - the name of the field to comparevalueToCompare - the value to compare withpublic static Function<Item,java.lang.Boolean> lt(java.lang.String field, java.lang.Number valueToCompare)
field - the name of the field to comparevalueToCompare - the value to compare withpublic static Function<Item,java.lang.Boolean> gte(java.lang.String field, java.lang.Number valueToCompare)
field - the name of the field to comparevalueToCompare - the value to compare with