JAL-2490 findFeaturesAtRes with performant feature lookup
[jalview.git] / src / jalview / datamodel / SequenceI.java
index 605f682..1fbc76a 100755 (executable)
@@ -486,13 +486,14 @@ public interface SequenceI extends ASequenceI
   public List<DBRefEntry> getPrimaryDBRefs();
 
   /**
-   * Returns a (possibly empty) list of sequence features of the given type that
-   * overlap the range from-to (inclusive)
+   * Returns a (possibly empty) list of sequence features that overlap the range
+   * from-to (inclusive), optionally restricted to one or more specified feature
+   * types
    * 
-   * @param type
    * @param from
    * @param to
+   * @param types
    * @return
    */
-  List<SequenceFeature> findFeatures(String type, int from, int to);
+  List<SequenceFeature> findFeatures(int from, int to, String... types);
 }