Class Query.SortPredicate (2.0.0)

public static final class Query.SortPredicate implements Serializable

SortPredicate is a data container that holds a single sort predicate.

Inheritance

java.lang.Object > Query.SortPredicate

Implements

Serializable

Constructors

SortPredicate(String propertyName, Query.SortDirection direction)

public SortPredicate(String propertyName, Query.SortDirection direction)
Parameters
Name Description
propertyName String
direction Query.SortDirection

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

getDirection()

public Query.SortDirection getDirection()

Gets the direction of the sort.

Returns
Type Description
Query.SortDirection

getPropertyName()

public String getPropertyName()

Gets the name of the property to sort on.

Returns
Type Description
String

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

reverse()

public Query.SortPredicate reverse()

Returns a sort predicate with the direction reversed.

Returns
Type Description
Query.SortPredicate

toString()

public String toString()
Returns
Type Description
String
Overrides