From ce80b67256a6d4bd3b6a52adeec279229e2fe442 Mon Sep 17 00:00:00 2001 From: kiramt Date: Mon, 15 Jan 2018 10:28:27 +0000 Subject: [PATCH] JAL-2759 Renamed BoundedHiddenColsIterator to HiddenColsIterator --- .../{BoundedHiddenColsIterator.java => HiddenColsIterator.java} | 6 +++--- src/jalview/datamodel/HiddenColumns.java | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) rename src/jalview/datamodel/{BoundedHiddenColsIterator.java => HiddenColsIterator.java} (93%) diff --git a/src/jalview/datamodel/BoundedHiddenColsIterator.java b/src/jalview/datamodel/HiddenColsIterator.java similarity index 93% rename from src/jalview/datamodel/BoundedHiddenColsIterator.java rename to src/jalview/datamodel/HiddenColsIterator.java index 8ec2a4d..610445c 100644 --- a/src/jalview/datamodel/BoundedHiddenColsIterator.java +++ b/src/jalview/datamodel/HiddenColsIterator.java @@ -9,7 +9,7 @@ import java.util.List; * a copy of the hidden columns collection. Intended to be used by callers * OUTSIDE of HiddenColumns. */ -public class BoundedHiddenColsIterator implements Iterator +public class HiddenColsIterator implements Iterator { // current index in hiddenColumns private int currentPosition = 0; @@ -23,7 +23,7 @@ public class BoundedHiddenColsIterator implements Iterator /** * Unbounded constructor */ - BoundedHiddenColsIterator(List hiddenColumns) + HiddenColsIterator(List hiddenColumns) { if (hiddenColumns != null) { @@ -44,7 +44,7 @@ public class BoundedHiddenColsIterator implements Iterator * @param upperBound * upper bound to iterate to */ - BoundedHiddenColsIterator(int lowerBound, int upperBound, + HiddenColsIterator(int lowerBound, int upperBound, List hiddenColumns) { init(lowerBound, upperBound, hiddenColumns); diff --git a/src/jalview/datamodel/HiddenColumns.java b/src/jalview/datamodel/HiddenColumns.java index 8716a67..ef80b32 100644 --- a/src/jalview/datamodel/HiddenColumns.java +++ b/src/jalview/datamodel/HiddenColumns.java @@ -1427,7 +1427,7 @@ public class HiddenColumns try { LOCK.readLock().lock(); - return new BoundedHiddenColsIterator(hiddenColumns); + return new HiddenColsIterator(hiddenColumns); } finally { LOCK.readLock().unlock(); @@ -1448,7 +1448,7 @@ public class HiddenColumns try { LOCK.readLock().lock(); - return new BoundedHiddenColsIterator(start, end, hiddenColumns); + return new HiddenColsIterator(start, end, hiddenColumns); } finally { LOCK.readLock().unlock(); -- 1.7.10.2