JAL-2446 method isNonPositional() added
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Wed, 5 Apr 2017 08:13:53 +0000 (09:13 +0100)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Wed, 5 Apr 2017 08:13:53 +0000 (09:13 +0100)
src/jalview/datamodel/SequenceFeature.java

index c330df9..b61dd71 100755 (executable)
@@ -553,4 +553,14 @@ public class SequenceFeature implements FeatureLocationI
     }
     return false;
   }
+
+  /**
+   * Answers true if the sequence has zero start and end position
+   * 
+   * @return
+   */
+  public boolean isNonPositional()
+  {
+    return begin == 0 && end == 0;
+  }
 }