public class EntryArrayList extends ArrayList<Entry> implements EntryList
EntryList.EmptyList| Modifier and Type | Field and Description |
|---|---|
static int |
ENTRY_SIZE_ESTIMATE |
modCountEMPTY_LIST| Constructor and Description |
|---|
EntryArrayList() |
EntryArrayList(Collection<? extends Entry> c) |
| Modifier and Type | Method and Description |
|---|---|
int |
getByteSize()
This implementation is an inexact estimate.
|
static EntryArrayList |
of(Iterable<? extends Entry> i) |
Iterator<Entry> |
reuseIterator()
Returns the same iterator as
List.iterator() with the only difference
that it reuses Entry objects when calling Iterator.next(). |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizeequals, hashCodecontainsAll, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitadd, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArrayparallelStream, removeIf, streampublic static final int ENTRY_SIZE_ESTIMATE
public EntryArrayList()
public EntryArrayList(Collection<? extends Entry> c)
public static EntryArrayList of(Iterable<? extends Entry> i)
public Iterator<Entry> reuseIterator()
EntryListList.iterator() with the only difference
that it reuses Entry objects when calling Iterator.next().
Hence, this method should only be used if references to Entry objects are only
kept and accesed until the next Iterator.next() call.reuseIterator in interface EntryListpublic int getByteSize()
ENTRY_SIZE_ESTIMATE times the array size.
The exact size could be calculated by iterating over the list and summing the remaining
size of each StaticBuffer in each Entry.getByteSize in interface EntryListCopyright © 2012–2015. All rights reserved.