public static final class Query.FilterPredicate extends Query.Filter
A 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 |
String the name of the property on which to filter |
operator |
Query.FilterOperator the operator to apply |
value |
Object A single instances of a supported type or if |
Methods
equals(@Nullable Object o)
public boolean equals(@Nullable Object o)
Parameter | |
---|---|
Name | Description |
o |
@org.checkerframework.checker.nullness.qual.Nullable java.lang.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 |