public class PackedSymbolListFactory extends Object implements SymbolListFactory
| Constructor and Description |
|---|
PackedSymbolListFactory()
Create a factory for PackedSymbolLists.
|
PackedSymbolListFactory(boolean ambiguity)
Deprecated.
the argumentless constructor creates a SymbolListFactory
that will autoselect the packing appropriately.
|
| Modifier and Type | Method and Description |
|---|---|
SymbolList |
makeSymbolList(Symbol[] symbolArray,
int size,
Alphabet alfa)
Makes a packed SymbolList out of a list of Symbols.
|
public PackedSymbolListFactory()
public PackedSymbolListFactory(boolean ambiguity)
ambiguity - is ambiguity to be supported by the encoding?public SymbolList makeSymbolList(Symbol[] symbolArray, int size, Alphabet alfa) throws IllegalAlphabetException
makeSymbolList in interface SymbolListFactorysymbolArray - the symbols to be make in a packed SymbolListsize - the length of the symbolArray array.alfa - the Alphabet over which the SymbolList shoudl beIllegalAlphabetException - if alfa and the Symbols in
symbolArray disagree.Copyright © 2014 BioJava. All rights reserved.