public abstract class ElementList extends Object
Modifier and Type | Field and Description |
---|---|
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.
|
void |
size(int sz)
Enforces the number of elements.
|
protected final int newSize()
protected final int newSize(int min)
min
- minimum sizepublic final int size()
public final void size(int sz)
sz
- number of elementspublic final boolean isEmpty()
public final void reset()
Copyright © 2005–2015 BaseX Team. All rights reserved.