|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Sorter
The Sorter
provides methods for sorting collections of PM objects by
a list of SortKey
s.
Each sort key defines a Path
to the PM's child node that should be
used as sort field. The comparison itself is delegated to a
Comparable
substitute generated by the sort field's
HasComparable.getComparable()
method.
Method Summary | ||
---|---|---|
|
sortBy(java.util.List<T> list,
SortKey... sortKeys)
Sorts the given list by the specified sort keys. |
|
|
sortBy(OrderPreservingMap<K,V> map,
SortKey... sortKeys)
Sorts the given map by the specified sort keys. |
Method Detail |
---|
<K,V extends PresentationModel> void sortBy(OrderPreservingMap<K,V> map, SortKey... sortKeys)
K
- V
- map
- the map to be sortedsortKeys
- the sort keys for the sorting<T extends PresentationModel> void sortBy(java.util.List<T> list, SortKey... sortKeys)
T
- list
- the list to be sortedsortKeys
- the sort keys for the sorting
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |