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