|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.planx.msd.util.WeakSorter
public final class WeakSorter
A utility class that provides various methods for weak-sorting of lists. Weak-sorting means sorting a multiset of lists according to any total order. The lists are, of course, sorted according to the same order.
| Method Summary | ||
|---|---|---|
static
|
sort(Discriminator<E> d,
List<? extends List<E>> values)
Sorts the specified lists in-place. |
|
static
|
sort(Discriminator<E> d,
List<? extends U> values,
Extractor<U,? extends List<E>,?> e)
Sorts a multiset of lists in-place. |
|
static
|
sortLists(Discriminator<E> d,
List<? extends U> values,
Extractor<U,? extends List<E>,S> e,
boolean doRemoveDuplicates)
Sorts a multiset of lists and returns a list of pairs, where the first component is a sorted list, and the second component is the corresponding original list. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static <U,E,S> List<Pair<List<E>,S>> sortLists(Discriminator<E> d,
List<? extends U> values,
Extractor<U,? extends List<E>,S> e,
boolean doRemoveDuplicates)
doRemoveDuplicates is true
duplicates are removed from the sorted lists.
The argument discriminator must be capable of discriminating the elements
contained in the lists.
public static <E> void sort(Discriminator<E> d,
List<? extends List<E>> values)
public static <U,E> void sort(Discriminator<E> d,
List<? extends U> values,
Extractor<U,? extends List<E>,?> e)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||