Package | Description |
---|---|
com.jayway.jsonpath |
Modifier and Type | Method and Description |
---|---|
Criteria |
Criteria.all(Collection<?> c)
The
all operator is similar to $in, but instead of matching any value
in the specified array all values in the array must be matched. |
Criteria |
Criteria.all(Object... o)
The
all operator is similar to $in, but instead of matching any value
in the specified array all values in the array must be matched. |
Criteria |
Criteria.and(String key)
Static factory method to create a Criteria using the provided key
|
Criteria |
Criteria.contains(Object o)
The
contains operator asserts that the provided object is contained
in the result. |
static Criteria |
Criteria.create(String left,
String operator,
String right)
Deprecated.
|
Criteria |
Criteria.empty(boolean empty)
The
notEmpty operator checks that an array or String is empty. |
Criteria |
Criteria.eq(Object o)
Creates a criterion using equality
|
Criteria |
Criteria.exists(boolean shouldExist)
Check for existence (or lack thereof) of a field.
|
Criteria |
Criteria.gt(Object o)
Creates a criterion using the > operator
|
Criteria |
Criteria.gte(Object o)
Creates a criterion using the >= operator
|
Criteria |
Criteria.in(Collection<?> c)
The
in operator is analogous to the SQL IN modifier, allowing you
to specify an array of possible matches. |
Criteria |
Criteria.in(Object... o)
The
in operator is analogous to the SQL IN modifier, allowing you
to specify an array of possible matches. |
Criteria |
Criteria.is(Object o)
Creates a criterion using equality
|
Criteria |
Criteria.lt(Object o)
Creates a criterion using the < operator
|
Criteria |
Criteria.lte(Object o)
Creates a criterion using the <= operator
|
Criteria |
Criteria.matches(Predicate p)
The
matches operator checks that an object matches the given predicate. |
Criteria |
Criteria.ne(Object o)
Creates a criterion using the != operator
|
Criteria |
Criteria.nin(Collection<?> c)
The
nin operator is similar to $in except that it selects objects for
which the specified field does not have any value in the specified array. |
Criteria |
Criteria.nin(Object... o)
The
nin operator is similar to $in except that it selects objects for
which the specified field does not have any value in the specified array. |
Criteria |
Criteria.notEmpty()
Deprecated.
|
static Criteria |
Criteria.parse(String criteria)
Deprecated.
|
Criteria |
Criteria.regex(Pattern pattern)
Creates a criterion using a Regex
|
Criteria |
Criteria.size(int size)
The
size operator matches:
array with the specified number of elements.
string with given length.
|
Criteria |
Criteria.type(Class<?> clazz)
The $type operator matches values based on their Java JSON type.
|
static Criteria |
Criteria.where(Path key)
Deprecated.
|
static Criteria |
Criteria.where(String key)
Static factory method to create a Criteria using the provided key
|
Copyright © 2023. All rights reserved.