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