public class Filter extends 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(String key,
Object value)
Check the property equals the given value
|
static Filter.Statement |
gt(String key,
Object value)
Check the property exceeds the given value
|
static Filter.Statement |
gte(String key,
Object value)
Check the property exceeds or equals the given value
|
static Filter.Statement |
has(String key)
Check the property's existence
|
static Filter.Statement |
in(String key,
Object... values)
Check the property is within the given set
|
static Filter.Statement |
lt(String key,
Object value)
Check the property does not exceeds the given value
|
static Filter.Statement |
lte(String key,
Object value)
Check the property equals or does not exceeds the given value
|
static Filter.Statement |
neq(String key,
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(String key)
Check the property's existence, negated
|
static Filter.Statement |
notIn(String key,
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(String key)
key
- the property keypublic static Filter.Statement notHas(String key)
key
- the property keypublic static Filter.Statement eq(String key, Object value)
key
- the property keyvalue
- the value to check againstpublic static Filter.Statement neq(String key, Object value)
key
- the property keyvalue
- the value to check againstpublic static Filter.Statement gt(String key, Object value)
key
- the property keyvalue
- the value to check againstpublic static Filter.Statement gte(String key, Object value)
key
- the property keyvalue
- the value to check againstpublic static Filter.Statement lt(String key, Object value)
key
- the property keyvalue
- the value to check againstpublic static Filter.Statement lte(String key, Object value)
key
- the property keyvalue
- the value to check againstpublic static Filter.Statement in(String key, Object... values)
key
- the property keyvalues
- the set of values to check againstpublic static Filter.Statement notIn(String key, Object... values)
key
- the property keyvalues
- the set of values to check against© 2015–2017 Mapbox. All rights reserved.