EntryList.EmptyList
modCount
EMPTY_LIST
Constructor and Description |
---|
EmptyList() |
Modifier and Type | Method and Description |
---|---|
Entry |
get(int index) |
int |
getByteSize()
Returns the total amount of bytes this entry consumes on the heap - including all object headers.
|
Iterator<Entry> |
reuseIterator()
Returns the same iterator as
List.iterator() with the only difference
that it reuses Entry objects when calling Iterator.next() . |
int |
size() |
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
add, add, addAll, addAll, clear, contains, containsAll, equals, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, sort, spliterator, subList, toArray, toArray
parallelStream, removeIf, stream
public Entry get(int index)
public int size()
size
in interface Collection<Entry>
size
in interface List<Entry>
size
in class AbstractCollection<Entry>
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()
EntryList
getByteSize
in interface EntryList
Copyright © 2012–2024. All rights reserved.