E - The type of element being sorted.public abstract class Sorter<E>
extends java.lang.Object
| Constructor and Description |
|---|
Sorter() |
| Modifier and Type | Method and Description |
|---|---|
void |
sortCollection(SortableCollection<E> collection)
This method sorts the elements of its collection using a specific
sorting algorithm.
|
abstract void |
sortCollection(SortableCollection<E> collection,
java.util.Comparator<? super E> comparator)
This method sorts the elements of its collection using a specific
sorting algorithm.
|
public final void sortCollection(SortableCollection<E> collection)
collection - The collection to be sorted.public abstract void sortCollection(SortableCollection<E> collection, java.util.Comparator<? super E> comparator)
collection - The collection to be sorted.comparator - The comparison function to be used during sorting.Copyright © 2015 Crater Dog Technologies(TM). All rights reserved.