Class Query.SortPredicate
- java.lang.Object
-
- com.google.appengine.api.datastore.Query.SortPredicate
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- Query
public static final class Query.SortPredicate extends Object implements Serializable
SortPredicate is a data container that holds a single sort predicate.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SortPredicate(String propertyName, Query.SortDirection direction)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(@Nullable Object o)
Query.SortDirection
getDirection()
Gets the direction of the sort.String
getPropertyName()
Gets the name of the property to sort on.int
hashCode()
Query.SortPredicate
reverse()
Returns a sort predicate with the direction reversed.String
toString()
-
-
-
Constructor Detail
-
SortPredicate
public SortPredicate(String propertyName, Query.SortDirection direction)
-
-
Method Detail
-
reverse
public Query.SortPredicate reverse()
Returns a sort predicate with the direction reversed.
-
getPropertyName
public String getPropertyName()
Gets the name of the property to sort on.
-
getDirection
public Query.SortDirection getDirection()
Gets the direction of the sort.
-
-