JAL-3253 temporary branch SwingJS upgrade with testNG fixes Java 8
[jalview.git] / src / jalview / datamodel / features / SequenceFeaturesI.java
index ca0283e..fe5e927 100644 (file)
@@ -228,4 +228,22 @@ public interface SequenceFeaturesI
    * Deletes all positional and non-positional features
    */
   void deleteAll();
+
+  /**
+   * Answers a (possibly empty) list of features of the specified type that
+   * overlap the specified column position. If parameter {@code result} is not
+   * null, features are appended to it and the (possibly extended) list is
+   * returned.
+   * 
+   * @param pos
+   * @param type
+   * @param result
+   * @return
+   */
+  List<SequenceFeature> findFeatures(int pos, String type, List<SequenceFeature> result);
+
+  /**
+   * Answers true if there are any features of the given type, else false
+   */
+  boolean hasFeatures(String type);
 }