JAL-2106 DBRefEntry.isPrimary() renamed isPrimaryCandidate()
[jalview.git] / src / jalview / datamodel / DBRefEntry.java
index 143a4d2..ec6dcf8 100755 (executable)
@@ -282,7 +282,7 @@ public class DBRefEntry implements DBRefEntryI
   }
 
   @Override
-  public boolean isPrimary()
+  public boolean isPrimaryCandidate()
   {
     /*
      * if a map is present, unless it is 1:1 and has no SequenceI mate, it cannot be a primary reference.  
@@ -298,7 +298,7 @@ public class DBRefEntry implements DBRefEntryI
       {
         return false;
       }
-      // check map is really 1:1, between identical single ranges
+      // check map is between identical single contiguous ranges
       List<int[]> fromRanges = map.getMap().getFromRanges();
       List<int[]> toRanges = map.getMap().getToRanges();
       if (fromRanges.size() != 1 || toRanges.size() != 1)