public class Filter
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Filter.Statement
Base Filter statement.
|
| Constructor and Description |
|---|
Filter() |
| Modifier and Type | Method and Description |
|---|---|
static Filter.Statement |
all(Filter.Statement... statements)
Groups a collection of statements in an 'all' relationship
|
static Filter.Statement |
any(Filter.Statement... statements)
Groups a collection of statements in an 'any' relationship
|
static Filter.Statement |
eq(java.lang.String key,
java.lang.Object value)
Check the property equals the given value
|
static Filter.Statement |
gt(java.lang.String key,
java.lang.Object value)
Check the property exceeds the given value
|
static Filter.Statement |
gte(java.lang.String key,
java.lang.Object value)
Check the property exceeds or equals the given value
|
static Filter.Statement |
has(java.lang.String key)
Check the property's existence
|
static Filter.Statement |
in(java.lang.String key,
java.lang.Object... values)
Check the property is within the given set
|
static Filter.Statement |
lt(java.lang.String key,
java.lang.Object value)
Check the property does not exceeds the given value
|
static Filter.Statement |
lte(java.lang.String key,
java.lang.Object value)
Check the property equals or does not exceeds the given value
|
static Filter.Statement |
neq(java.lang.String key,
java.lang.Object value)
Check the property does not equals the given value
|
static Filter.Statement |
none(Filter.Statement... statements)
Groups a collection of statements in an 'none' relationship
|
static Filter.Statement |
notHas(java.lang.String key)
Check the property's existence, negated
|
static Filter.Statement |
notIn(java.lang.String key,
java.lang.Object... values)
Check the property is not within the given set
|
public static Filter.Statement all(Filter.Statement... statements)
statements - the collection of statementspublic static Filter.Statement any(Filter.Statement... statements)
statements - the collection of statementspublic static Filter.Statement none(Filter.Statement... statements)
statements - the collection of statementspublic static Filter.Statement has(java.lang.String key)
key - the property keypublic static Filter.Statement notHas(java.lang.String key)
key - the property keypublic static Filter.Statement eq(java.lang.String key, java.lang.Object value)
key - the property keyvalue - the value to check againstpublic static Filter.Statement neq(java.lang.String key, java.lang.Object value)
key - the property keyvalue - the value to check againstpublic static Filter.Statement gt(java.lang.String key, java.lang.Object value)
key - the property keyvalue - the value to check againstpublic static Filter.Statement gte(java.lang.String key, java.lang.Object value)
key - the property keyvalue - the value to check againstpublic static Filter.Statement lt(java.lang.String key, java.lang.Object value)
key - the property keyvalue - the value to check againstpublic static Filter.Statement lte(java.lang.String key, java.lang.Object value)
key - the property keyvalue - the value to check againstpublic static Filter.Statement in(java.lang.String key, java.lang.Object... values)
key - the property keyvalues - the set of values to check againstpublic static Filter.Statement notIn(java.lang.String key, java.lang.Object... values)
key - the property keyvalues - the set of values to check against