[Biojava-dev] Sequence cloning with annotations & features...

Michael Heuer heuermh at acm.org
Wed Mar 30 02:05:55 EST 2005


On Wed, 30 Mar 2005 mark.schreiber at novartis.com wrote:

> A very crude way to "deep clone" would be to serialize the Sequence object
> and deserialize it as another object. We did a lot of work on
> Serialization a few years back to get biojava to work with it. If you
> notice anything odd let us know. The advantage of this is that both would
> be exactly the same, even down to the implementing classes.

Presumably if you serialize a Sequence to a stream or file and then
deserialize it back into memory again, shouldn't the before and after
copies be "equal" to each other?  Thinking back to a chapter in Bloch's
Effective Java that I haven't read in a while...

   michael



More information about the biojava-dev mailing list