public class PointQueue
extends java.lang.Object
Constructor and Description |
---|
PointQueue() |
Modifier and Type | Method and Description |
---|---|
void |
add(int[] v)
Add an element to the queue.
|
PointQueue |
clone()
Get a copy of the queue.
|
boolean |
contains(int[] c)
Determines whether the queue contains a given value.
|
int[] |
get(int index)
Get an element from the queue.
|
boolean |
isEmpty()
Determine whether the queue is empty.
|
int[] |
remove(int index)
Remove an element from the queue.
|
int |
size()
Retrieves the size of the queue.
|
public void add(int[] v)
v
- The int array to add to the queue.public boolean isEmpty()
public int[] remove(int index)
index
- The (zero-based) position of the element to be removed.public int size()
public boolean contains(int[] c)
c
- The value to check for existence.public int[] get(int index)
index
- The location of the element to get.public PointQueue clone()
clone
in class java.lang.Object