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