private int current;
- public AllColsIterator(int firstcol, int lastcol, HiddenColumns hiddenCols)
+ public AllColsIterator(int firstcol, int lastcol,
+ HiddenColumns hiddenCols)
{
last = lastcol;
next = firstcol;
@Override
public boolean hasNext()
{
- return current + 1 <= last;
+ return next <= last;
}
@Override
public Integer next()
{
- if (current + 1 > last)
+ if (next > last)
{
throw new NoSuchElementException();
}
throw new UnsupportedOperationException();
}
}
-