public class Filter extends Object implements Serializable, Jsonifiable
Modifier and Type | Class and Description |
---|---|
static class |
Filter.Builder
Builder is used to build instances of Filter from values configured by the builder methods.
|
static class |
Filter.Criteria |
static class |
Filter.Operator |
Jsonifiable.JsonMapper
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
static Filter |
extend(Filter filter,
String extension)
Combine an existing filter criteria with additional query expression.
|
Optional<String> |
fields()
Contains a comma separated list of fields to be included in the returned devices objects
|
int |
hashCode() |
Optional<String> |
namespaces()
A comma separated list of namespaces.
|
static Filter.Builder |
newBuilder() |
Optional<String> |
options()
A comma separated list of sorting and paging options to be applied to the returned device set
|
Optional<String> |
query()
Returns the device filtering criteria.
|
Filter.Builder |
toBuilder() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
toJsonString
public static Filter.Builder newBuilder()
public static Filter extend(Filter filter, String extension)
filter
contains a query already, the extension
will be added to the existing query
using and
operator and only devices matching all given queries will be returned, otherwise the extension
will be add as filter criteria.filter
- the filter to extend query ofextension
- the query to be added to the filterpublic Optional<String> query()
public Optional<String> namespaces()
public Optional<String> options()
public Optional<String> fields()
public Filter.Builder toBuilder()
Copyright © 2022 Bosch.IO GmbH. All rights reserved.