Class SortSpec

java.lang.Object
io.vantiq.client.SortSpec

public class SortSpec extends Object
Class used to represent a sort specification for a select query.
  • Constructor Details

    • SortSpec

      public SortSpec(String property, boolean descending)
  • Method Details

    • getProperty

      public String 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 by Gson
      Returns:
      The JsonObject represented by this sort specification