public static class WLongArrayList.WReusableLongArrayList extends WLongArrayList
WLongArrayList.WReusableLongArrayList
Constructor and Description |
---|
WReusableLongArrayList()
Constructor
|
WReusableLongArrayList(int capacity)
Constructor
|
Modifier and Type | Method and Description |
---|---|
static WLongArrayList.WReusableLongArrayList |
readIntoOrCreate(WLongArrayList.WReusableLongArrayList list,
DataInput in)
Read array list from DataInput stream, into a given list if not null,
or creating a new list if given list is null.
|
protected void |
resizeArrayForRead(int size)
Resize array for reading given number of elements.
|
addW, capacity, fastForEachW, fastForEachWhileW, fastIteratorW, fastIteratorW, fillW, forEachLong, forEachWhileLong, getElementTypeOps, getIntoW, popIntoW, readElements, readFields, readNew, setCapacity, setW, sort, write, writeElements, writeOrNull
add, add, addAll, addAll, addElements, clear, clone, compareTo, elements, ensureCapacity, equals, getElements, getLong, indexOf, isEmpty, lastIndexOf, listIterator, rem, removeElements, removeLong, set, size, size, toLongArray, trim, trim, wrap, wrap
add, addAll, addAll, addAll, addAll, addElements, compareTo, contains, ensureIndex, ensureRestrictedIndex, equals, get, hashCode, indexOf, iterator, lastIndexOf, listIterator, longListIterator, longListIterator, longSubList, peek, peekLong, pop, popLong, push, push, remove, remove, set, subList, top, topLong, toString
add, contains, containsAll, containsAll, longIterator, rem, removeAll, removeAll, retainAll, retainAll, toArray, toArray, toArray, toLongArray
finalize, getClass, notify, notifyAll, wait, wait, wait
size, trim
clear, size
add, addAll, contains, containsAll, iterator, longIterator, rem, removeAll, retainAll, toArray, toArray, toLongArray, toLongArray
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, parallelStream, remove, removeAll, removeIf, retainAll, size, spliterator, stream, toArray
add, contains, containsAll, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
public WReusableLongArrayList()
public WReusableLongArrayList(int capacity)
capacity
- Capacityprotected void resizeArrayForRead(int size)
WLongArrayList
resizeArrayForRead
in class WLongArrayList
size
- Number of elements that will be read.public static WLongArrayList.WReusableLongArrayList readIntoOrCreate(WLongArrayList.WReusableLongArrayList list, DataInput in) throws IOException
list
- Array list to be writtenin
- Data inputIOException
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.