|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpivot.collections.concurrent.SynchronizedCollection<T>
pivot.collections.concurrent.SynchronizedList<T>
pivot.collections.concurrent.SynchronizedStack<T>
public class SynchronizedStack<T>
Synchronized implementation of the Stack
interface.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface pivot.collections.List |
---|
List.ListListenerList<T> |
Nested classes/interfaces inherited from interface pivot.collections.Sequence |
---|
Sequence.Search, Sequence.Sort, Sequence.Tree |
Field Summary |
---|
Fields inherited from class pivot.collections.concurrent.SynchronizedCollection |
---|
collection |
Constructor Summary | |
---|---|
SynchronizedStack(Stack<T> stack)
|
Method Summary | |
---|---|
T |
peek()
Returns the item on top of the stack without removing it from the stack. |
T |
poke(T item)
Replaces the item on top of the stack. |
T |
pop()
Removes an item from the top of the stack, blocking if the stack is currently empty. |
void |
push(T item)
"Pushes" an item onto the stack. |
Methods inherited from class pivot.collections.concurrent.SynchronizedList |
---|
add, clear, get, getLength, getListListeners, indexOf, insert, remove, remove, update |
Methods inherited from class pivot.collections.concurrent.SynchronizedCollection |
---|
getComparator, iterator, setComparator |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface pivot.collections.List |
---|
add, clear, getLength, getListListeners, insert, remove, setComparator, update |
Methods inherited from interface pivot.collections.Sequence |
---|
get, indexOf, remove |
Methods inherited from interface pivot.collections.Collection |
---|
getComparator |
Methods inherited from interface java.lang.Iterable |
---|
iterator |
Constructor Detail |
---|
public SynchronizedStack(Stack<T> stack)
Method Detail |
---|
public void push(T item)
Stack
push
in interface Stack<T>
item
- The item to push onto the stack.public T pop()
pop
in interface Stack<T>
public T peek()
Stack
peek
in interface Stack<T>
public T poke(T item)
Stack
poke
in interface Stack<T>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |