[Biojava-l] IntegerAlphabet IntegerSymbol

Thomas Down td2@sanger.ac.uk
Tue, 23 Oct 2001 16:19:58 +0100


On Mon, Oct 22, 2001 at 03:51:14PM -0700, Emig, Robin wrote:
> 	I use .getToken a lot, about as much as I use .seqString(). I would
> like however there to be somekind of default token set that is easy to use.

It's reasonably easy to get a SymbolTokenization from the
Alphabet you're using, and then call tokenizeSymbol on
that, but it does reduce code density a little.

Would convenience methods like:

    char c = DNATools.token(mySymbol);

be helpful, or do you want to leave the method on the
Symbol interface itself?

    Thomas.