public class EntryArrayList extends ArrayList<Entry> implements EntryList
EntryList.EmptyList
Modifier and Type | Field and Description |
---|---|
static int |
ENTRY_SIZE_ESTIMATE |
modCount
EMPTY_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) |
static EntryArrayList |
of(Iterator<? 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, trimToSize
equals, hashCode
containsAll, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
add, 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, toArray
parallelStream, removeIf, stream
public static final int ENTRY_SIZE_ESTIMATE
public EntryArrayList()
public EntryArrayList(Collection<? extends Entry> c)
public static EntryArrayList of(Iterator<? extends Entry> i)
public static EntryArrayList of(Iterable<? extends Entry> i)
public Iterator<Entry> reuseIterator()
EntryList
List.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 accessed until the next Iterator.next()
call.reuseIterator
in interface EntryList
public 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 EntryList
Copyright © 2012–2024. All rights reserved.