public static final class Query.FilterPredicate extends Query.Filter
Query.Filter
on a single property.Constructor and Description |
---|
FilterPredicate(java.lang.String propertyName,
Query.FilterOperator operator,
java.lang.Object value)
Constructs a filter predicate from the given parameters.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
Query.FilterOperator |
getOperator()
Gets the operator describing how to apply the filter.
|
java.lang.String |
getPropertyName()
Gets the name of the property to be filtered on.
|
java.lang.Object |
getValue()
Gets the argument to the filter operator.
|
int |
hashCode() |
java.lang.String |
toString() |
public FilterPredicate(java.lang.String propertyName, Query.FilterOperator operator, java.lang.Object value)
propertyName
- the name of the property on which to filteroperator
- the operator to applyvalue
- A single instances of a supported type or if operator
is Query.FilterOperator.IN
a non-empty Iterable
object containing instances of supported
types.java.lang.IllegalArgumentException
- If the provided filter values are not supported.DataTypeUtils.isSupportedType(Class)
public java.lang.String getPropertyName()
public Query.FilterOperator getOperator()
public java.lang.Object getValue()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object