T
tim felton
Hi, I am somewhat of a noob when it comes to Java but some assistance would
be great.
I have two TreeSet objects. They each hold instances of objects that
implement the following interface :
abstract interface IBioFeature extends Comparable, Serializable
{
public String getUID();
public int getStart();
public int getStop();
public int getStrand();
public String getSequence() throws SQLException,
ClassNotFoundException;
public String getContigIdentifier();
}
Note that this interface represents a range in a genomic sequence - that for
all purposes
may be regarded as a large String.
I would like to find elements in each TreeSet whose ranges partially
overlap. I do not want to search both collections and compare values from
getStart() and getStop() as this is very inefficient for large collections
of IBioFeature objects.
Any ideas would be greatly appreciated
be great.
I have two TreeSet objects. They each hold instances of objects that
implement the following interface :
abstract interface IBioFeature extends Comparable, Serializable
{
public String getUID();
public int getStart();
public int getStop();
public int getStrand();
public String getSequence() throws SQLException,
ClassNotFoundException;
public String getContigIdentifier();
}
Note that this interface represents a range in a genomic sequence - that for
all purposes
may be regarded as a large String.
I would like to find elements in each TreeSet whose ranges partially
overlap. I do not want to search both collections and compare values from
getStart() and getStop() as this is very inefficient for large collections
of IBioFeature objects.
Any ideas would be greatly appreciated