public class Filter extends Object
| Constructor and Description |
|---|
Filter() |
| Modifier and Type | Method and Description |
|---|---|
static Filter |
and(Filter... filters)
Creates a new filter that is a conjunction of the given filters.
|
static Filter |
arrayContains(FieldPath fieldPath,
Object value)
Creates a new filter for checking that the given array field contains the given value.
|
static Filter |
arrayContains(String field,
Object value)
Creates a new filter for checking that the given array field contains the given value.
|
static Filter |
arrayContainsAny(FieldPath fieldPath,
Object value)
Creates a new filter for checking that the given array field contains any of the given values.
|
static Filter |
arrayContainsAny(String field,
Object value)
Creates a new filter for checking that the given array field contains any of the given values.
|
static Filter |
equalTo(FieldPath fieldPath,
Object value)
Creates a new filter for checking that the given field is equal to the given value.
|
static Filter |
equalTo(String field,
Object value)
Creates a new filter for checking that the given field is equal to the given value.
|
static Filter |
greaterThan(FieldPath fieldPath,
Object value)
Creates a new filter for checking that the given field is greater than the given value.
|
static Filter |
greaterThan(String field,
Object value)
Creates a new filter for checking that the given field is greater than the given value.
|
static Filter |
greaterThanOrEqualTo(FieldPath fieldPath,
Object value)
Creates a new filter for checking that the given field is greater than or equal to the given
value.
|
static Filter |
greaterThanOrEqualTo(String field,
Object value)
Creates a new filter for checking that the given field is greater than or equal to the given
value.
|
static Filter |
inArray(FieldPath fieldPath,
Object value)
Creates a new filter for checking that the given field equals any of the given values.
|
static Filter |
inArray(String field,
Object value)
Creates a new filter for checking that the given field equals any of the given values.
|
static Filter |
lessThan(FieldPath fieldPath,
Object value)
Creates a new filter for checking that the given field is less than the given value.
|
static Filter |
lessThan(String field,
Object value)
Creates a new filter for checking that the given field is less than the given value.
|
static Filter |
lessThanOrEqualTo(FieldPath fieldPath,
Object value)
Creates a new filter for checking that the given field is less than or equal to the given
value.
|
static Filter |
lessThanOrEqualTo(String field,
Object value)
Creates a new filter for checking that the given field is less than or equal to the given
value.
|
static Filter |
notEqualTo(FieldPath fieldPath,
Object value)
Creates a new filter for checking that the given field is not equal to the given value.
|
static Filter |
notEqualTo(String field,
Object value)
Creates a new filter for checking that the given field is not equal to the given value.
|
static Filter |
notInArray(FieldPath fieldPath,
Object value)
Creates a new filter for checking that the given field does not equal any of the given values.
|
static Filter |
notInArray(String field,
Object value)
Creates a new filter for checking that the given field does not equal any of the given values.
|
static Filter |
or(Filter... filters)
Creates a new filter that is a disjunction of the given filters.
|
@Nonnull public static Filter equalTo(@Nonnull String field, @Nullable Object value)
field - The field used for the filter.value - The value used for the filter.@Nonnull public static Filter equalTo(@Nonnull FieldPath fieldPath, @Nullable Object value)
fieldPath - The field path used for the filter.value - The value used for the filter.@Nonnull public static Filter notEqualTo(@Nonnull String field, @Nullable Object value)
field - The field used for the filter.value - The value used for the filter.@Nonnull public static Filter notEqualTo(@Nonnull FieldPath fieldPath, @Nullable Object value)
fieldPath - The field path used for the filter.value - The value used for the filter.@Nonnull public static Filter greaterThan(@Nonnull String field, @Nullable Object value)
field - The field used for the filter.value - The value used for the filter.@Nonnull public static Filter greaterThan(@Nonnull FieldPath fieldPath, @Nullable Object value)
fieldPath - The field path used for the filter.value - The value used for the filter.@Nonnull public static Filter greaterThanOrEqualTo(@Nonnull String field, @Nullable Object value)
field - The field used for the filter.value - The value used for the filter.@Nonnull public static Filter greaterThanOrEqualTo(@Nonnull FieldPath fieldPath, @Nullable Object value)
fieldPath - The field path used for the filter.value - The value used for the filter.@Nonnull public static Filter lessThan(@Nonnull String field, @Nullable Object value)
field - The field used for the filter.value - The value used for the filter.@Nonnull public static Filter lessThan(@Nonnull FieldPath fieldPath, @Nullable Object value)
fieldPath - The field path used for the filter.value - The value used for the filter.@Nonnull public static Filter lessThanOrEqualTo(@Nonnull String field, @Nullable Object value)
field - The field used for the filter.value - The value used for the filter.@Nonnull public static Filter lessThanOrEqualTo(@Nonnull FieldPath fieldPath, @Nullable Object value)
fieldPath - The field path used for the filter.value - The value used for the filter.@Nonnull public static Filter arrayContains(@Nonnull String field, @Nullable Object value)
field - The field used for the filter.value - The value used for the filter.@Nonnull public static Filter arrayContains(@Nonnull FieldPath fieldPath, @Nullable Object value)
fieldPath - The field path used for the filter.value - The value used for the filter.@Nonnull public static Filter arrayContainsAny(@Nonnull String field, @Nullable Object value)
field - The field used for the filter.value - The list of values used for the filter.@Nonnull public static Filter arrayContainsAny(@Nonnull FieldPath fieldPath, @Nullable Object value)
fieldPath - The field path used for the filter.value - The list of values used for the filter.@Nonnull public static Filter inArray(@Nonnull String field, @Nullable Object value)
field - The field used for the filter.value - The list of values used for the filter.@Nonnull public static Filter inArray(@Nonnull FieldPath fieldPath, @Nullable Object value)
fieldPath - The field path used for the filter.value - The list of values used for the filter.@Nonnull public static Filter notInArray(@Nonnull String field, @Nullable Object value)
field - The field path used for the filter.value - The list of values used for the filter.@Nonnull public static Filter notInArray(@Nonnull FieldPath fieldPath, @Nullable Object value)
fieldPath - The field path used for the filter.value - The list of values used for the filter.@Nonnull public static Filter or(Filter... filters)
filters - The list of filters to perform a disjunction for.@Nonnull public static Filter and(Filter... filters)
filters - The list of filters to perform a conjunction for.Copyright © 2023 Google LLC. All rights reserved.