|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.amino.ds.lockfree.EBStack<E>
E - Type of elementspublic class EBStack<E>
| Constructor Summary | |
|---|---|
EBStack()
Default constructor. |
|
EBStack(int size)
Specify size of internal elimination array. |
|
| Method Summary | |
|---|---|
void |
dump()
dump array. |
boolean |
isEmpty()
Check to see if Stack is empty. |
E |
peek()
Return copy of the top data on the Stack. |
E |
pop()
Pop data from the Stack. |
void |
push(E d)
Push data onto Stack. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EBStack()
public EBStack(int size)
size - default size of stack| Method Detail |
|---|
public void dump()
public E pop()
pop in interface IStack<E>public void push(E d)
push in interface IStack<E>d - data to be pushed onto the stack.public boolean isEmpty()
isEmpty in interface IStack<E>public E peek()
peek in interface IStack<E>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||