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