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
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 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
Name Description
o @org.checkerframework.checker.nullness.qual.Nullable java.lang.Object
Returns
Type Description
boolean
Overrides

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
Overrides

toString()

public String toString()
Returns
Type Description
String
Overrides