E - The type of element managed by the collection.public interface Sortable<E> extends Iteratable<E>
| Modifier and Type | Method and Description |
|---|---|
Manipulator<E> |
createDefaultManipulator()
This method creates a new default manipulator for the collection.
|
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.
|
createDefaultIterator, removeAllElementsgetNumberOfElements, isEmpty, iterator, toArrayvoid 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 © 2014 Crater Dog Technologies(TM). All rights reserved.