E - The type of element managed by the collection.public interface FIFO<E>
| Modifier and Type | Method and Description |
|---|---|
void |
addElementToTail(E element)
This method adds a new element to the tail of the queue.
|
E |
getHeadElement()
This method returns a reference to the element at the head of the queue
without removing the element from the queue.
|
E |
removeElementFromHead()
This method removes the next element from the head of the queue.
|
void addElementToTail(E element) throws java.lang.InterruptedException
element - The new element to be added.java.lang.InterruptedException - The thread that was waiting to add an element
was interrupted.E removeElementFromHead() throws java.lang.InterruptedException
java.lang.InterruptedException - The thread that was waiting to remove an element
was interrupted.E getHeadElement()
Copyright © 2015 Crater Dog Technologies(TM). All rights reserved.