IntArrayList
An array-backed list of int.
Mostly forked and trimmed from com.carrotsearch.hppc.IntArrayList
github: https://github.com/carrotsearch/hppc release 0.10.0
Constructors
Properties
Functions
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 IntArrayList.
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.
Trim the internal buffer to the current size.