public abstract class ElementList
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
CAP
Initial hash capacity.
|
protected int |
size
Number of elements.
|
| Modifier | Constructor and Description |
|---|---|
protected |
ElementList()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isEmpty()
Tests is the container has no elements.
|
protected int |
newSize()
Returns a new array size.
|
protected int |
newSize(int min)
Returns a new array size that is larger than or equal to the specified
size.
|
void |
reset()
Resets the array size.
|
int |
size()
Returns the number of elements.
|
public static final int CAP
protected int size
protected final int newSize()
protected final int newSize(int min)
min - minimum sizepublic final int size()
public final boolean isEmpty()
public final void reset()