T
- public class LockFreeStack<T> extends IStructure<T>
IStructure.Backoff, IStructure.Node<T>
abort
Constructor and Description |
---|
LockFreeStack() |
Modifier and Type | Method and Description |
---|---|
void |
add(T item)
add a object of type T
|
boolean |
isEmpty()
Method to tell if the data structure is empty (contains no elements).
|
T |
remove()
retrieve a object of type T
|
add, get, registerThread, shutdown
public void add(T item)
IStructure
add
in class IStructure<T>
public boolean isEmpty()
IStructure
isEmpty
in class IStructure<T>
public T remove()
IStructure
remove
in class IStructure<T>