Skip navigation links
Thingworx Platform API
8.5.0
com.thingworx.types.data.sorters

Class GenericSorter

  • java.lang.Object
    • com.thingworx.types.data.sorters.GenericSorter
    • Field Summary

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

      Constructors 
      Constructor and Description
      GenericSorter() 
      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