|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.basex.util.list.ElementList
public abstract class ElementList
This is an abstract class for storing elements of any kind in an array-based list.
Field Summary | |
---|---|
protected double |
factor
Resize factor for extending the arrays. |
protected int |
size
Number of elements. |
Constructor Summary | |
---|---|
protected |
ElementList()
Default constructor. |
Method Summary | |
---|---|
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 s)
Enforces the number of elements. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected double factor
protected int size
Constructor Detail |
---|
protected ElementList()
Method Detail |
---|
protected final int newSize()
protected final int newSize(int min)
min
- minimum size
public final int size()
public final void size(int s)
s
- number of elementspublic final boolean isEmpty()
public final void reset()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |