Class Query.FilterPredicate (2.0.0)

public static final class Query.FilterPredicate extends Query.Filter

A Filter on a single property.

Inheritance

Object > Query.Filter > Query.FilterPredicate

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
NameDescription
propertyNameString

the name of the property on which to filter

operatorQuery.FilterOperator

the operator to apply

valueObject

A single instances of a supported type or if operator is FilterOperator#IN a non-empty Iterable object containing instances of supported types.

Methods

equals(@Nullable Object o)

public boolean equals(@Nullable Object o)
Parameter
NameDescription
o@org.checkerframework.checker.nullness.qual.Nullable java.lang.Object
Returns
TypeDescription
boolean
Overrides

getOperator()

public Query.FilterOperator getOperator()

Gets the operator describing how to apply the filter.

Returns
TypeDescription
Query.FilterOperator

getPropertyName()

public String getPropertyName()

Gets the name of the property to be filtered on.

Returns
TypeDescription
String

getValue()

public Object getValue()

Gets the argument to the filter operator.

Returns
TypeDescription
Object

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

toString()

public String toString()
Returns
TypeDescription
String
Overrides