>>>>> "Mark" == Schreiber, Mark <[EMAIL PROTECTED]> writes:

    Mark> Hi - As this is the second time this has come up, Keith, can
    Mark> I put your solution on Biojava in Anger?

[...]

Hi,

Sure, feel free to do anything you like with it. Perhaps a link could
be added to the Iterator page at Sun's java site.

It may also be worth noting that you /can/ do this:

while (seqI.hasNext())
{
    Sequence seq = seqI.nextSequence();

    for (Iterator i = seq.features(); i.hasNext();)
    {
        i.next();
        i.remove();
    }
}

which is a way to avoid ConcurrentModificationException, but also a
way to avoid informing any listeners to Sequence that all its Features
have been stripped - and is likely to be bad.

cheers,

Keith

-- 

- Keith James <[EMAIL PROTECTED]> bioinformatics programming support -
- Pathogen Sequencing Unit, The Wellcome Trust Sanger Institute, UK -

_______________________________________________
Biojava-l mailing list  -  [EMAIL PROTECTED]
http://biojava.org/mailman/listinfo/biojava-l

Reply via email to