public abstract class Queue
extends java.lang.Object
Constructor and Description |
---|
Queue() |
Modifier and Type | Method and Description |
---|---|
abstract java.lang.Object |
get()
Retrieves and removes the head of this queue, or returns null if this queue is empty.
|
abstract Iterator |
iterator()
Returns an iterator of the values in this queue.
|
abstract void |
put(java.lang.Object value)
Inserts the value into this queue.
|
abstract int |
size()
Returns the number of values in this queue.
|
public abstract void put(java.lang.Object value)
java.lang.IllegalStateException
- if the element cannot be added at this time due to capacity restrictionspublic abstract java.lang.Object get()
public abstract int size()
public abstract Iterator iterator()