FloatArrayList
An array-backed list of float.
Mostly forked and trimmed from com.carrotsearch.hppc.FloatArrayList
github: https://github.com/carrotsearch/hppc release 0.10.0
Constructors
Properties
Internal array for storing the list. The array may be larger than the current size (.size).
Returns nested resources of this class. The result should be a point-in-time snapshot (to avoid race conditions).
Current number of elements stored in .buffer.
Functions
Adds all elements from another iterable.
Adds all elements from another list.
Clone this object. The returned clone will reuse the same hash function and array resizing strategy.
Ensure this container can hold at least the given number of elements without resizing its buffers.
Compare index-aligned elements against another FloatArrayList.
Return the memory usage of this object in bytes. Negative values are illegal.
Removes the first element that equals e, returning whether an element has been removed.
Removes the first element that equals e1, returning its deleted position or -1 if the element was not found.
Removes and returns the last element of this list.
Removes the last element that equals e1, returning its deleted position or -1 if the element was not found.
Removes from this list all the elements with indexes between fromIndex, inclusive, and toIndex, exclusive.
Truncate or expand the list to the new size. If the list is truncated, the buffer will not be reallocated (use .trimToSize if you need a truncated buffer), but the truncated values will be reset to the default value (zero). If the list is expanded, the elements beyond the current size are initialized with JVM-defaults (zero or null values).
Reverses the elements in this list and returns this list.
Sorts the elements in this list and returns this list.
The returned array is sized to match exactly the number of elements of the stack.
Trim the internal buffer to the current size.