|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.basex.util.list.ElementList
org.basex.util.list.BoolList
public final class BoolList
This is a simple container for native booleans.
Field Summary |
---|
Fields inherited from class org.basex.util.list.ElementList |
---|
factor, size |
Constructor Summary | |
---|---|
BoolList()
Default constructor. |
|
BoolList(int capacity)
Constructor, specifying an initial internal array size. |
Method Summary | |
---|---|
void |
add(boolean element)
Adds an element. |
boolean |
get(int index)
Returns the element at the specified index. |
boolean |
peek()
Returns the uppermost element on the stack, without removing it. |
boolean |
pop()
Pops the uppermost element from the stack. |
void |
push(boolean element)
Pushes an element onto the stack. |
void |
set(int index,
boolean element)
Stores an element at the specified index. |
boolean[] |
toArray()
Finishes the int array. |
java.lang.String |
toString()
|
Methods inherited from class org.basex.util.list.ElementList |
---|
isEmpty, newSize, newSize, reset, size, size |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BoolList()
public BoolList(int capacity)
capacity
- initial array capacityMethod Detail |
---|
public void add(boolean element)
element
- element to be addedpublic boolean get(int index)
index
- index of the element to return
public void set(int index, boolean element)
index
- index of the element to replaceelement
- element to be storedpublic boolean pop()
public void push(boolean element)
element
- elementpublic boolean peek()
public boolean[] toArray()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |