public interface ExtendedBufferList<T> extends BufferList<T>
BufferList which can maintain its sorted state and eagerly remove duplicates when elements are inserted.| Modifier and Type | Method and Description |
|---|---|
void |
filterDuplicates()
Eagerly removes duplicates from the underlying buffer; does not change the relative order of distinct elements.
|
ExtendedBufferList<T> |
sort(Comparator<? super T> theComparator) |
com.google.common.collect.PeekingIterator<T> |
uniqueIterator()
Lazy elimination of duplicates.
|
add, addAll, array, capacity, clear, isEmpty, isFull, iterator, size, truncateaddAll, contains, containsAll, equals, hashCode, parallelStream, remove, removeAll, removeIf, retainAll, spliterator, stream, toArray, toArrayvoid filterDuplicates()
com.google.common.collect.PeekingIterator<T> uniqueIterator()
sort(Comparator) has to be called prior to this method.ExtendedBufferList<T> sort(Comparator<? super T> theComparator)
sort in interface BufferList<T>Copyright © 2010-2016 Stardog Union. All Rights Reserved.