at.jku.risc.stout.urau.algo
public class AlignmentList extends TinyList<AlignmentList.Alignment> implements Poolable
Modifier and Type | Class and Description |
---|---|
class |
AlignmentList.Alignment
An AlignmentList.Alignment is a list of AlignmentList.Alignment.AlignmentAtoms.
|
Modifier and Type | Method and Description |
---|---|
void |
cleanUp()
This method is called from the Pool before the object is
returned to the pool.
|
void |
free() |
static void |
fullCleanUp()
Cleans up the entire memory from the current object pool.
|
AlignmentList.Alignment |
get(int i)
Returns an alignment of this list.
|
Poolable |
newObject()
This method is called from the Pool if there is no object
available to recycle.
|
AlignmentList.Alignment |
nextAlignment()
Increments the list by one and returns the new AlignmentList.Alignment
from this AlignmentList.
|
static AlignmentList |
obtainList() |
void |
removeLast()
Removes the last element of this list of alignments.
|
int |
size()
guarantees complexity O(1) by definition
|
public void cleanUp()
Poolable
public void free()
Pool.free(Poolable)
public static void fullCleanUp()
public AlignmentList.Alignment get(int i)
get
in class TinyList<AlignmentList.Alignment>
public Poolable newObject()
Poolable
public AlignmentList.Alignment nextAlignment()
public static AlignmentList obtainList()
Pool.obtain()
public void removeLast()
removeLast
in class TinyList<AlignmentList.Alignment>
public int size()
TinyList
size
in class TinyList<AlignmentList.Alignment>