[Biojava-l] Empty Symbol List

Thomas Down td2@sanger.ac.uk
Mon, 22 Apr 2002 08:55:17 +0100


On Fri, Apr 19, 2002 at 03:09:06PM -0400, Jones, Mike wrote:
> What is the behavior of a SimpleSymbol list if a string of length 0 if
> it is created with a string of length 0. 
> 
> new SimpleSymbolList (tokenization, "");
> 
> Is it essentially an empty List?

Yes, it will be.  It will, however, have an Alphabet associated
with it, which might be significant in some cases.

This is different from the SymbolList.EMPTY_LIST singleton,
which is an immutable empty list from the empty alphabet.

    Thomas.