[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003e\u003ccode\u003eQuery.SortPredicate\u003c/code\u003e is a data container that holds a single sort predicate and implements the \u003ccode\u003eSerializable\u003c/code\u003e interface.\u003c/p\u003e\n"],["\u003cp\u003eThis class inherits from \u003ccode\u003ejava.lang.Object\u003c/code\u003e and includes methods like \u003ccode\u003eequals\u003c/code\u003e, \u003ccode\u003ehashCode\u003c/code\u003e, and \u003ccode\u003etoString\u003c/code\u003e, which are overridden from the \u003ccode\u003eObject\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eThe constructor, \u003ccode\u003eSortPredicate(String propertyName, Query.SortDirection direction)\u003c/code\u003e, allows the creation of a sort predicate with a specified property name and sort direction.\u003c/p\u003e\n"],["\u003cp\u003eIt provides methods to get the sort direction (\u003ccode\u003egetDirection\u003c/code\u003e) and the property name (\u003ccode\u003egetPropertyName\u003c/code\u003e), as well as the ability to reverse the sort direction with the \u003ccode\u003ereverse\u003c/code\u003e method.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eequals()\u003c/code\u003e method checks for equality with other objects, and the \u003ccode\u003ehashCode()\u003c/code\u003e method returns an integer hash code value.\u003c/p\u003e\n"]]],[],null,["# Class Query.SortPredicate (2.0.0)\n\n public static final class Query.SortPredicate implements Serializable\n\nSortPredicate is a data container that holds a single sort predicate. \n\nInheritance\n-----------\n\n[java.lang.Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \\\u003e Query.SortPredicate \n\nImplements\n----------\n\n[Serializable](https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html) \n\nInherited Members\n-----------------\n\n[Object.clone()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--) \n[Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-) \n[Object.finalize()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--) \n[Object.getClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--) \n[Object.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--) \n[Object.notify()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--) \n[Object.notifyAll()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--) \n[Object.toString()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--) \n[Object.wait()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--) \n[Object.wait(long)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-) \n[Object.wait(long,int)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-)\n\nConstructors\n------------\n\n### SortPredicate(String propertyName, Query.SortDirection direction)\n\n public SortPredicate(String propertyName, Query.SortDirection direction)\n\nMethods\n-------\n\n### equals(@Nullable Object o)\n\n public boolean equals(@Nullable Object o)\n\n**Overrides** \n[Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-)\n\n### getDirection()\n\n public Query.SortDirection getDirection()\n\nGets the direction of the sort.\n\n### getPropertyName()\n\n public String getPropertyName()\n\nGets the name of the property to sort on.\n\n### hashCode()\n\n public int hashCode()\n\n**Overrides** \n[Object.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--)\n\n### reverse()\n\n public Query.SortPredicate reverse()\n\nReturns a sort predicate with the direction reversed.\n\n### toString()\n\n public String toString()\n\n**Overrides** \n[Object.toString()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--)"]]