Package io.vantiq.client
Class SortSpec
java.lang.Object
io.vantiq.client.SortSpec
Class used to represent a sort specification for a select query.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe property name used for the sortbooleanIndicates if the sort order should be ascending or descending.com.google.gson.JsonObjectReturns the JsonObject that can be serialized byGson
-
Constructor Details
-
SortSpec
-
-
Method Details
-
getProperty
The property name used for the sort- Returns:
- The sort property name
-
isDescending
public boolean isDescending()Indicates if the sort order should be ascending or descending.- Returns:
- true for a descending sort
-
serialize
public com.google.gson.JsonObject serialize()Returns the JsonObject that can be serialized byGson- Returns:
- The JsonObject represented by this sort specification
-