*/
package intervalstore.nonc;
-import intervalstore.api.IntervalI;
+import jalview.datamodel.SequenceFeature;
/**
- * A simplified feature instance sufficient for unit test purposes
+ * A simplified feature instance sufficient for unit test purposes.
+ *
+ * Subclasses SequenceFeature only because otherwise we have to use equals() in
+ * the Jalview version of nonc.IntervalStore, and that does a class check that
+ * we were trying to avoid.
+ *
*/
-public class SimpleFeature implements IntervalI
+public class SimpleFeature extends SequenceFeature
{
final private int begin;
*/
public SimpleFeature(int from, int to, String desc)
{
+ super("", desc, from, to, "");
begin = from;
end = to;
description = desc;
return end;
}
+ @Override
public String getDescription()
{
return description;