at.jku.risc.stout.urauc.util
public abstract class TinyList<V> extends Object implements Cloneable
Constructor and Description |
---|
TinyList() |
Modifier and Type | Method and Description |
---|---|
V |
get(int i)
Returns the element at the relative position i.
|
V |
getFirst()
Returns the (relative) first element.
|
V |
getLast()
Returns the last element.
|
boolean |
isEmpty()
Returns true if the relative size is 0.
|
void |
removeFirst()
Removes the first element by incrementing the start.
This is a dirty remove which does not nullify any pointers! |
void |
removeLast()
Removes the last element by decrementing the size.
This is a dirty remove which does not nullify any pointers! |
int |
size()
|
<T extends TinyList<V>> |
subList(int from) |
<T extends TinyList<V>> |
subList(int from,
int to) |
String |
toString() |
public V get(int i)
public V getFirst()
public V getLast()
public boolean isEmpty()
public void removeFirst()
public void removeLast()
public int size()