PCJ API
Version 1.2

bak.pcj.list
Interface BooleanStack

All Superinterfaces:
BooleanCollection, BooleanList
All Known Implementing Classes:
BooleanArrayStack

public interface BooleanStack
extends BooleanList

This interface represents stacks of boolean values.

Since:
1.0
See Also:
Stack, BooleanDeque

Method Summary
 boolean peek()
          Returns the top element of this stack.
 boolean pop()
          Pops an element off this stack.
 void push(boolean v)
          Pushes a specified element onto this stack.
 
Methods inherited from interface bak.pcj.list.BooleanList
add, addAll, get, indexOf, indexOf, lastIndexOf, lastIndexOf, listIterator, listIterator, removeElementAt, set
 
Methods inherited from interface bak.pcj.BooleanCollection
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray, trimToSize
 

Method Detail

push

public void push(boolean v)
Pushes a specified element onto this stack.

Parameters:
v - the element to push onto this stack.

pop

public boolean pop()
Pops an element off this stack.

Returns:
the element that was popped off this stack.
Throws:
IndexOutOfBoundsException - if the stack is empty.
See Also:
peek()

peek

public boolean peek()
Returns the top element of this stack.

Returns:
the top element of this stack.
Throws:
IndexOutOfBoundsException - if the stack is empty.
See Also:
pop()

PCJ API
Version 1.2

Report a bug or request a feature.
Further information on the development and latest release of PCJ can be found at the project homepage.

Primitive Collections for Java is released under the GNU Lesser General Public License.
Copyright © 2002, 2003 Søren Bak. All Rights Reserved.

Hosted by SourceForge.net
SourceForge.net Logo