java.lang.Object | |
↳ | com.pnfsoftware.jeb.util.collect.IntList |
A memory-efficient list of int
primitives. Additions, retrieval, updates are supported.
Deletes and insertions are not supported.
This class is not thread-safe.
Note: hashCode()
and equals(Object)
are not overridden.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
IntList()
Create a list with an initial capacity of 16 and bucket capacity of 65,536.
| |||||||||||
IntList(int initialCapacity, int bucketCapacity) |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void | add(int val) | ||||||||||
void | clear() | ||||||||||
int | get(int index) | ||||||||||
boolean | isEmpty() | ||||||||||
void | set(int index, int val) | ||||||||||
int | size() | ||||||||||
String | toString() |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Create a list with an initial capacity of 16 and bucket capacity of 65,536.