public interface IQueue<T>
Modifier and Type | Method and Description |
---|---|
T |
dequeue()
Gets and removes the first element of the queue
|
void |
drawDataType(java.lang.String path,
java.lang.Class c)
Generates a PNG and a DOT file with a figure representing structure the
object
|
boolean |
enqueue(T element)
Inserts a new element at the end of the queue
|
int |
getCost()
Gets the cost of the last operation performed
|
T |
getFront()
Gets the first element of the queue
|
boolean |
isEmpty()
Checks if there are data in the queue
|
boolean |
isFull()
Checks if the queue is full
|
java.util.Iterator<T> |
iterator()
Returns an iterator
|
int |
numElements()
Returns the number of elements in the queue
|
boolean isEmpty()
int numElements()
boolean isFull()
boolean enqueue(T element)
element
- the element to insert into the queueT dequeue()
T getFront()
int getCost()
void drawDataType(java.lang.String path, java.lang.Class c)
path
- the path where generate the DOT filejava.util.Iterator<T> iterator()