Skip navigation links
Thingworx Platform API

Class GenericSorter

  • java.lang.Object
    • Field Summary

      Modifier and Type Field and Description
      static boolean ASCENDING 
      static boolean DESCENDING 
    • Constructor Summary

      Constructor and Description
      GenericSorter(java.lang.String fieldName, boolean isAscending) 
      GenericSorter(java.lang.String fieldName, boolean isAscending, boolean isCaseSensitive) 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      int compare(ValueCollection row1, ValueCollection row2) 
      java.lang.String getFieldName() 
      boolean isAscending() 
      boolean isCaseSensitive() 
      void resolveFields(DataShapeDefinition metadata) 
      void setAscending(boolean value) 
      void setFieldName(java.lang.String value) 
      org.json.JSONObject toJSON()

      Produces JSON representation of this sorter.
      org.json.JSONArray toJSONArray()

      Produces JSONArray containing result of toJSON().
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Comparator

        comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong