Class SortCriteria
java.lang.Object
com.helixframework.pagination.sort.SortCriteria
- All Implemented Interfaces:
Iterable<SortCriteria.Criterion>
Restful sort criteria.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance ofSortCriteria.SortCriteria(List<SortCriteria.Criterion> criteria) Creates a new instance ofSortCriteria. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
SortCriteria
public SortCriteria()Creates a new instance ofSortCriteria. -
SortCriteria
Creates a new instance ofSortCriteria.- Parameters:
criteria- list of criterion
-
-
Method Details
-
add
Adds a new criterion.- Parameters:
value- criterion valueorder- criterion order
-
toList
Gets the sort criteria as a list.- Returns:
- list of criteria
-
iterator
- Specified by:
iteratorin interfaceIterable<SortCriteria.Criterion>
-