public void testBoundedStartIterator()
{
HiddenColumns h = new HiddenColumns();
- Iterator<Integer> it = h.getBoundedStartIterator(0, 10);
+ Iterator<Integer> it = h.getStartRegionIterator(0, 10);
// no hidden columns = nothing to iterate over
assertFalse(it.hasNext());
// all regions are returned
h.hideColumns(3, 10);
h.hideColumns(14, 16);
- it = h.getBoundedStartIterator(0, 20);
+ it = h.getStartRegionIterator(0, 20);
assertTrue(it.hasNext());
int next = it.next();
assertEquals(3, next);
// [start,end] does not contain a start of a region
// no regions to iterate over
- it = h.getBoundedStartIterator(4, 5);
+ it = h.getStartRegionIterator(4, 5);
assertFalse(it.hasNext());
// [start,end] fully contains 1 region and start of last
// - 2 regions returned
- it = h.getBoundedStartIterator(3, 7);
+ it = h.getStartRegionIterator(3, 7);
assertTrue(it.hasNext());
next = it.next();
assertEquals(3, next);
// [start,end] contains whole of last region
// - 1 region returned
- it = h.getBoundedStartIterator(4, 20);
+ it = h.getStartRegionIterator(4, 20);
assertTrue(it.hasNext());
next = it.next();
assertEquals(6, next);