public static final class Query.FilterPredicate extends Query.FilterA Filter on a single property.
Constructors
FilterPredicate(String propertyName, Query.FilterOperator operator, Object value)
public FilterPredicate(String propertyName, Query.FilterOperator operator, Object value)Constructs a filter predicate from the given parameters. See Also: DataTypeUtils#isSupportedType(Class)
| Parameters | |
|---|---|
| Name | Description |
propertyName |
Stringthe name of the property on which to filter |
operator |
Query.FilterOperatorthe operator to apply |
value |
ObjectA single instances of a supported type or if |
Methods
equals(@Nullable Object o)
public boolean equals(@Nullable Object o)| Parameter | |
|---|---|
| Name | Description |
o |
Nullable Object |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
getOperator()
public Query.FilterOperator getOperator()Gets the operator describing how to apply the filter.
| Returns | |
|---|---|
| Type | Description |
Query.FilterOperator |
|
getPropertyName()
public String getPropertyName()Gets the name of the property to be filtered on.
| Returns | |
|---|---|
| Type | Description |
String |
|
getValue()
public Object getValue()Gets the argument to the filter operator.
| Returns | |
|---|---|
| Type | Description |
Object |
|
hashCode()
public int hashCode()| Returns | |
|---|---|
| Type | Description |
int |
|
toString()
public String toString()| Returns | |
|---|---|
| Type | Description |
String |
|