org.simpleods
public class ObjectQueue extends java.lang.Object
| Constructor and Description |
|---|
ObjectQueue() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(java.lang.Object o)
Appends the specified element to the end of this list.
|
java.lang.Object |
get(int n)
Get the object at position n.
|
void |
printAll()
Print all objects in this ObjectQueue to System.out.
|
boolean |
setAt(int n,
java.lang.Object o)
Set an object at position n.
|
int |
size() |
public boolean add(java.lang.Object o)
o - element to be appended to this listpublic boolean setAt(int n,
java.lang.Object o)
n - index of the element to replace.o - element to be stored at the specified position.public java.lang.Object get(int n)
n - The position of the object to be returned.public int size()
public void printAll()