public class DummySymbolList extends AbstractSymbolList implements Serializable
Feature
objects, but don't
have the actual sequence data available, you can construct a
SimpleSequence
from a DummySequence
,
and create features. on that.AbstractSymbolList.EditScreener, AbstractSymbolList.EditTranslater
EDIT, EMPTY_LIST
Constructor and Description |
---|
DummySymbolList(Alphabet alpha,
int length,
Symbol sym) |
DummySymbolList(FiniteAlphabet alpha,
int length) |
Modifier and Type | Method and Description |
---|---|
Alphabet |
getAlphabet()
The alphabet that this SymbolList is over.
|
int |
length()
The number of symbols in this SymbolList.
|
Symbol |
symbolAt(int i)
Return the symbol at index, counting from 1.
|
edit, equals, hashCode, iterator, seqString, subList, subStr, toList, toString
addChangeListener, addChangeListener, generateChangeSupport, getChangeSupport, hasListeners, hasListeners, isUnchanging, removeChangeListener, removeChangeListener
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListener
public DummySymbolList(FiniteAlphabet alpha, int length)
public DummySymbolList(Alphabet alpha, int length, Symbol sym) throws IllegalSymbolException
IllegalSymbolException
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 i)
SymbolList
symbolAt
in interface SymbolList
i
- the offset into this SymbolListCopyright © 2014 BioJava. All rights reserved.