E - The type of element managed by the collection.public interface Sortable<E>
| Modifier and Type | Method and Description |
|---|---|
Manipulator<E> |
createDefaultManipulator()
This method creates a new default manipulator for the collection.
|
void |
shuffleElements()
This method shuffles the elements in the collection using a randomizing algorithm.
|
void |
sortElements()
This method sorts the elements in the collection using the default (merge) sorting
algorithm and the elements'
compareTo method. |
void |
sortElements(java.util.Comparator<? super E> comparator)
This method sorts the elements in the collection using the default (merge) sorting
algorithm and the specified comparison function.
|
void |
sortElements(Sorter<E> sorter,
java.util.Comparator<? super E> comparator)
This method sorts the elements in the collection using the specified sorting
algorithm and the specified comparison function.
|
void shuffleElements()
void sortElements()
compareTo method. It provides an easy way
to sort a collection using its natural ordering.void sortElements(java.util.Comparator<? super E> comparator)
comparator - The desired comparison function.void sortElements(Sorter<E> sorter, java.util.Comparator<? super E> comparator)
sorter - The desired sorting algorithm.comparator - The desired comparison function.Manipulator<E> createDefaultManipulator()
Copyright © 2015 Crater Dog Technologies(TM). All rights reserved.