Package com.thingworx.types.data.sorters
Interface ISort
- All Superinterfaces:
Comparator<ValueCollection>
- All Known Implementing Classes:
GenericSorter
,SortCollection
General sorter interface for use with
Query
.-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
void
resolveFields
(DataShapeDefinition fields) void
setAscending
(boolean value) void
setFieldName
(String value) toJSON()
Produces JSON representation of this sorter as either JSONObject or JSONArray as most appropriate.org.json.JSONArray
Produces JSONArray representation of this sorter.Methods inherited from interface java.util.Comparator
compare, equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Method Details
-
getFieldName
-
setFieldName
-
isAscending
-
isCaseSensitive
-
setAscending
-
resolveFields
-
toJSON
Produces JSON representation of this sorter as either JSONObject or JSONArray as most appropriate.- Returns:
- JSON representation of this sorter
- Throws:
org.json.JSONException
- Upon internal errors
-
toJSONArray
@ThingworxExtensionApiMethod(since={6,6}) org.json.JSONArray toJSONArray() throws org.json.JSONException
Produces JSONArray representation of this sorter.- Returns:
- JSONArray representation of this sorter
- Throws:
org.json.JSONException
- Upon internal errors
-