public class GrowQueue_I32
extends java.lang.Object
Constructor and Description |
---|
GrowQueue_I32() |
GrowQueue_I32(int maxSize) |
Modifier and Type | Method and Description |
---|---|
void |
add(int value) |
void |
addAll(GrowQueue_I32 queue) |
void |
addAll(int[] array,
int startIndex,
int endIndex) |
void |
fill(int value) |
int |
get(int index) |
int |
indexOf(int value)
Returns the index of the first element with the specified 'value'.
|
void |
insert(int index,
int value)
Inserts the value at the specified index and shifts all the other values down.
|
int |
pop() |
void |
push(int val) |
void |
remove(int index) |
void |
removeHead(int total)
Removes the first 'total' elements from the queue.
|
int |
removeTail() |
void |
reset() |
void |
resize(int size) |
void |
set(int index,
int value) |
void |
setMaxSize(int size) |
void |
setTo(GrowQueue_I32 original) |
int |
size() |
int |
unsafe_get(int index) |
public GrowQueue_I32(int maxSize)
public GrowQueue_I32()
public void reset()
public void addAll(GrowQueue_I32 queue)
public void addAll(int[] array, int startIndex, int endIndex)
public void add(int value)
public void push(int val)
public int get(int index)
public int unsafe_get(int index)
public void set(int index, int value)
public void setTo(GrowQueue_I32 original)
public void remove(int index)
public void insert(int index, int value)
public void removeHead(int total)
total
- Number of elements to remove from the head of the queuepublic int removeTail()
public void resize(int size)
public void setMaxSize(int size)
public void fill(int value)
public int size()
public int pop()
public int indexOf(int value)
value
- Value to search for