JAL-2674 HiddenColumns interface tidies
[jalview.git] / src / jalview / datamodel / HiddenColumns.java
index 9f3b929..88af9fa 100644 (file)
@@ -1448,6 +1448,18 @@ public class HiddenColumns
     }
   }
 
+  public Iterator<int[]> iterator()
+  {
+    if (hiddenColumns != null)
+    {
+      return new BoundedHiddenColsIterator(0, hiddenColumns.size(), true);
+    }
+    else
+    {
+      return new BoundedHiddenColsIterator(0, 0, true);
+    }
+  }
+
   public Iterator<int[]> getBoundedIterator(int start, int end,
           boolean useCopy)
   {