public class DummySymbolList extends AbstractSymbolList implements SerializableSymbol list which just consists of non-informative symbols. A DummySymbolList can be constructed over any Alphabet, and may be of any length. Calls to the symbolAt method will always return the non-informative symbol for the alphabet in question (i.e. 'n' for DNA, 'X' for protein, etc.). If you wish to work with
Featureobjects, but don't have the actual sequence data available, you can construct a
DummySequence, and create features. on that.
- Thomas Down, Matthew Pocock
- See Also:
- Serialized Form
All Methods Instance Methods Concrete Methods Modifier and Type Method Description
getAlphabet()The alphabet that this SymbolList is over.
length()The number of symbols in this SymbolList.
symbolAt(int i)Return the symbol at index, counting from 1.
Methods inherited from class org.biojava.bio.symbol.AbstractSymbolList
edit, equals, hashCode, iterator, seqString, subList, subStr, toList, toString
Methods inherited from class org.biojava.utils.AbstractChangeable
addChangeListener, addChangeListener, generateChangeSupport, getChangeSupport, hasListeners, hasListeners, isUnchanging, removeChangeListener, removeChangeListener
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public Alphabet getAlphabet()The alphabet that this SymbolList is over.
Every symbol within this SymbolList is a member of this alphabet.
alphabet.contains(symbol) == truefor each symbol that is within this sequence.
public int length()The number of symbols in this SymbolList.