Package org.pipservices3.commons.data
Class SortParams
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable<SortField>
,Collection<SortField>
,List<SortField>
,RandomAccess
Defines a field name and order used to sort query results.
### Example ###
FilterParams filter = FilterParams.fromTuples("type", "Type1");
PagingParams paging = new PagingParams(0, 100);
SortingParams sorting = new SortingParams(new SortField("create_time", true));
myDataClient.getDataByFilter(filter, paging, sorting);
- See Also:
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount
-
Constructor Summary
ConstructorDescriptionSortParams
(Iterable<SortField> fields) Creates a new instance and initializes it with specified sort fields. -
Method Summary
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
Methods inherited from class java.util.AbstractCollection
containsAll, toString
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, stream, toArray
Methods inherited from interface java.util.List
containsAll
-
Constructor Details
-
SortParams
public SortParams() -
SortParams
Creates a new instance and initializes it with specified sort fields.- Parameters:
fields
- a list of fields to sort by.
-