|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SortableOperator<T>
This interface contains methods for sorting the elements of a structure.
Method Summary | |
---|---|
SortableOperator<T> |
sort()
Sorts the elements of the structure according to their natural ordering. |
SortableOperator<T> |
sort(Comparator<? super T> comparator)
Sorts the elements of the structure according to the order induced by the specified comparator. |
SortableOperator<T> |
sortBy(IFunction<? super T,?> by)
Sorts the elements of the structure according to the result of executing the specified function. |
Method Detail |
---|
SortableOperator<T> sort()
Sorts the elements of the structure according to their natural ordering.
SortableOperator<T> sort(Comparator<? super T> comparator)
Sorts the elements of the structure according to the order induced by the specified comparator.
comparator
- the comparator to be used.
SortableOperator<T> sortBy(IFunction<? super T,?> by)
Sorts the elements of the structure according to the result of executing the specified function.
by
- the function to be executed in order to obtain the compared object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |