public final class IntArrayQueue extends Object
Constructor | Description |
---|---|
IntArrayQueue() |
Modifier and Type | Method | Description |
---|---|---|
void |
add(int value) |
Add a new item to the queue.
|
int |
capacity() |
Returns the length of the backing array.
|
void |
clear() |
Clears the queue.
|
boolean |
isEmpty() |
Returns whether the queue is empty.
|
int |
remove() |
Remove an item from the queue.
|
int |
size() |
Returns the number of items in the queue.
|
public void add(int value)
public int remove()
NoSuchElementException
- if the queue is empty.public int size()
public boolean isEmpty()
public void clear()
public int capacity()