X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fdatamodel%2FVisibleColsCollection.java;h=4ca51b5bdcfdf4f78eaf87942d5f08e5d8a5d876;hb=refs%2Fheads%2Ftask%2FJAL-3130_Java_11_investigations-Ben-2-CHANGES_TO_DEPRECATED_CALLS;hp=8b6c2a4e549850f20a5c85482a1d19f4c57fedc7;hpb=536a4a9c407a4c07b71e86e75135eaa2ba5e8850;p=jalview.git diff --git a/src/jalview/datamodel/VisibleColsCollection.java b/src/jalview/datamodel/VisibleColsCollection.java index 8b6c2a4e..4ca51b5 100644 --- a/src/jalview/datamodel/VisibleColsCollection.java +++ b/src/jalview/datamodel/VisibleColsCollection.java @@ -27,21 +27,22 @@ import java.util.Iterator; public class VisibleColsCollection implements AlignmentColsCollectionI { int start; + int end; HiddenColumns hidden; - public VisibleColsCollection(int s, int e, HiddenColumns hiddenCols) + public VisibleColsCollection(int s, int e, HiddenColumns h) { start = s; end = e; - hidden = hiddenCols; + hidden = h; } @Override public Iterator iterator() { - return new VisibleColsIterator(start, end, hidden); + return hidden.getVisibleColsIterator(start, end); } @Override @@ -50,4 +51,10 @@ public class VisibleColsCollection implements AlignmentColsCollectionI return false; } + @Override + public boolean hasHidden() + { + return false; + } + }