public class ArraySortBuffer<S> extends java.util.ArrayList<S> implements SortBuffer<S>
SortedCursor
,
Serialized FormConstructor 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, trimToSize
finalize, getClass, notify, notifyAll, wait, wait, wait
public ArraySortBuffer()
public ArraySortBuffer(int initialCapacity)
public void prepare(java.util.Comparator<S> comparator)
SortBuffer
prepare
in interface SortBuffer<S>
public void sort()
SortBuffer
sort
in interface SortBuffer<S>
public void close()
SortBuffer
close
in interface SortBuffer<S>
Copyright © 2006-2013 Amazon Technologies, Inc.. All Rights Reserved.