public final class BoolList extends ElementList
size
Constructor and Description |
---|
BoolList()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
BoolList |
add(boolean element)
Adds an element.
|
boolean[] |
finish()
Returns an array with all elements and invalidates the internal array.
|
boolean |
get(int index)
Returns the element at the specified index.
|
boolean[] |
next()
Returns an array with all elements and resets the array size.
|
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.
|
String |
toString() |
public BoolList add(boolean element)
element
- element to be addedpublic boolean get(int index)
index
- index of the element to returnpublic 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 boolean[] next()
public boolean[] finish()
Copyright © 2005–2015 BaseX Team. All rights reserved.