public static class WIntArrayList.WReusableIntArrayList extends WIntArrayList
WIntArrayList.WReusableIntArrayList
Constructor and Description |
---|
WReusableIntArrayList()
Constructor
|
WReusableIntArrayList(int capacity)
Constructor
|
Modifier and Type | Method and Description |
---|---|
static WIntArrayList.WReusableIntArrayList |
readIntoOrCreate(WIntArrayList.WReusableIntArrayList 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, forEachInt, forEachWhileInt, getElementTypeOps, getIntoW, popIntoW, readElements, readFields, readNew, setCapacity, setW, sort, write, writeElements, writeOrNull
add, add, addAll, addAll, addElements, clear, clone, compareTo, elements, ensureCapacity, equals, getElements, getInt, indexOf, isEmpty, lastIndexOf, listIterator, rem, removeElements, removeInt, set, size, size, toIntArray, trim, trim, wrap, wrap
add, addAll, addAll, addAll, addAll, addElements, compareTo, contains, ensureIndex, ensureRestrictedIndex, equals, get, hashCode, indexOf, intListIterator, intListIterator, intSubList, iterator, lastIndexOf, listIterator, peek, peekInt, pop, popInt, push, push, remove, remove, set, subList, top, topInt, toString
add, contains, containsAll, containsAll, intIterator, rem, removeAll, removeAll, retainAll, retainAll, toArray, toArray, toArray, toIntArray
finalize, getClass, notify, notifyAll, wait, wait, wait
size, trim
clear, size
add, addAll, contains, containsAll, intIterator, iterator, rem, removeAll, retainAll, toArray, toArray, toIntArray, toIntArray
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 WReusableIntArrayList()
public WReusableIntArrayList(int capacity)
capacity
- Capacityprotected void resizeArrayForRead(int size)
WIntArrayList
resizeArrayForRead
in class WIntArrayList
size
- Number of elements that will be read.public static WIntArrayList.WReusableIntArrayList readIntoOrCreate(WIntArrayList.WReusableIntArrayList list, DataInput in) throws IOException
list
- Array list to be writtenin
- Data inputIOException
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.