public class ArraySortBuffer<S> extends java.util.ArrayList<S> implements SortBuffer<S>
SortedCursor,
Serialized Form| Constructor and Description |
|---|
ArraySortBuffer() |
ArraySortBuffer(int initialCapacity) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Clear and close buffer.
|
void |
prepare(java.util.Comparator<S> comparator)
Clears buffer and assigns a comparator for sorting.
|
void |
sort()
Finish sorting buffer.
|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeRange, retainAll, set, size, subList, toArray, toArray, trimToSizefinalize, getClass, notify, notifyAll, wait, wait, waitpublic ArraySortBuffer()
public ArraySortBuffer(int initialCapacity)
public void prepare(java.util.Comparator<S> comparator)
SortBufferprepare in interface SortBuffer<S>public void sort()
SortBuffersort in interface SortBuffer<S>public void close()
SortBufferclose in interface SortBuffer<S>Copyright © 2006-2013 Amazon Technologies, Inc.. All Rights Reserved.