JAL-2349 TODO consider caching contactRanges from getContactRange to improve efficiency
[jalview.git] / src / jalview / datamodel / ContactListImpl.java
index 561048e..8e806e4 100644 (file)
@@ -21,6 +21,12 @@ public class ContactListImpl implements ContactListI
   }
 
   @Override
+  public int getPosition()
+  {
+    return clist.getPosition();
+  }
+
+  @Override
   public double getContactAt(int column)
   {
     return clist.getContactAt(column);
@@ -35,6 +41,7 @@ public class ContactListImpl implements ContactListI
   @Override
   public ContactRange getRangeFor(int from_column, int to_column)
   {
+    // TODO: consider caching ContactRange for a particular call ?
     if (clist instanceof ContactListI)
     {
       // clist may implement getRangeFor in a more efficient way, so use theirs