org.amino.ds.lockfree
Interface IStack<E>

Type Parameters:
E - type of element in stack
All Known Implementing Classes:
EBStack

public interface IStack<E>

interface definition of stack.


Method Summary
 boolean isEmpty()
           
 E peek()
           
 E pop()
           
 void push(E e)
           
 

Method Detail

peek

E peek()
Returns:
element peeked

pop

E pop()
Returns:
element popped

push

void push(E e)
Parameters:
e - element pushed

isEmpty

boolean isEmpty()
Returns:
true if stack is empty, otherwise false


Copyright © 2008. All Rights Reserved.