public class ChunkedSymbolList extends AbstractSymbolList implements Serializable
AbstractSymbolList.EditScreener, AbstractSymbolList.EditTranslater
EDIT, EMPTY_LIST
Constructor and Description |
---|
ChunkedSymbolList(SymbolList[] chunks,
int chunkSize,
int length,
Alphabet alpha) |
Modifier and Type | Method and Description |
---|---|
protected void |
finalize() |
Alphabet |
getAlphabet()
The alphabet that this SymbolList is over.
|
int |
length()
The number of symbols in this SymbolList.
|
SymbolList |
subList(int start,
int end)
Return a new SymbolList for the symbols start to end inclusive.
|
Symbol |
symbolAt(int pos)
Return the symbol at index, counting from 1.
|
edit, equals, hashCode, iterator, seqString, subStr, toList, toString
addChangeListener, addChangeListener, generateChangeSupport, getChangeSupport, hasListeners, hasListeners, isUnchanging, removeChangeListener, removeChangeListener
addChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListener
public ChunkedSymbolList(SymbolList[] chunks, int chunkSize, int length, Alphabet alpha)
public Alphabet getAlphabet()
SymbolList
Every symbol within this SymbolList is a member of this alphabet.
alphabet.contains(symbol) == true
for each symbol that is within this sequence.
getAlphabet
in interface SymbolList
public int length()
SymbolList
length
in interface SymbolList
public Symbol symbolAt(int pos)
SymbolList
symbolAt
in interface SymbolList
pos
- the offset into this SymbolListpublic SymbolList subList(int start, int end)
SymbolList
The resulting SymbolList will count from 1 to (end-start + 1) inclusive, and refer to the symbols start to end of the original sequence.
subList
in interface SymbolList
subList
in class AbstractSymbolList
start
- the first symbol of the new SymbolListend
- the last symbol (inclusive) of the new SymbolListCopyright © 2014 BioJava. All rights reserved.