T
- type of elementspublic class DEQueue<T> extends IDEStructure<T>
IStructure.Node<T>
head, size, tail
Constructor and Description |
---|
DEQueue()
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
add(T item)
add a element at the bottom
|
T |
get()
retrieves a element from the bottom
|
T |
getFromTop() |
boolean |
isEmpty() |
clear, getSize
public void add(T item)
add
in class IStructure<T>
public T get() throws EmptyException
get
in class IStructure<T>
EmptyException
public T getFromTop() throws EmptyException
getFromTop
in class IDEStructure<T>
EmptyException
public boolean isEmpty()
isEmpty
in class IStructure<T>