[Biojava-l] Sequence and String

2005-08-05 Thread Felipe Albrecht
Hello, When I do "sequence.seqString()" , [sequence as a instance of SimpleSequence] I catch a _new_ String representing the sequence or a _reference_ for the String in my Sequence class? Its is important for me, because if a have a greate sequence, I will waste memory copying then when a need t

RE: [Biojava-l] Sequence and String

2005-08-05 Thread Richard HOLLAND
Internally the Sequence is stored not as a String but as an array of Symbol objects. Hence when you call seqString(), a new String is generated every time by appending the results of calling toString() on every Symbol object in the internal array. cheers, Richard -Original Message- Fr