org.millscript.office.spreadsheet.rows
Class SharedRowListIterator

java.lang.Object
  extended by org.millscript.commons.util.iterator.AbstractMapIterator<java.lang.Integer,V>
      extended by org.millscript.commons.util.iterator.AbstractListIterator<Row>
          extended by org.millscript.office.spreadsheet.rows.SharedRowListIterator
All Implemented Interfaces:
org.millscript.commons.util.ListIterator<Row>, org.millscript.commons.util.MapIterator<java.lang.Integer,Row>

public class SharedRowListIterator
extends org.millscript.commons.util.iterator.AbstractListIterator<Row>

This class provides a list interator implementation which iterates over a slice of a shared object array.


Field Summary
 
Fields inherited from class org.millscript.commons.util.iterator.AbstractListIterator
position
 
Constructor Summary
SharedRowListIterator(Cell[][] objects, int start, int end)
          Constructs a new shared array list iterator to iterate over a slice of the specified object array.
 
Method Summary
protected  Row getValue()
           
 boolean hasNext()
           
protected  boolean outOfBounds()
           
 
Methods inherited from class org.millscript.commons.util.iterator.AbstractListIterator
advance, currentMaplet, getKey, getMaplet, nextMaplet
 
Methods inherited from class org.millscript.commons.util.iterator.AbstractMapIterator
currentKey, currentValue, nextKey, nextValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.millscript.commons.util.MapIterator
currentKey, currentValue, nextKey, nextValue
 

Constructor Detail

SharedRowListIterator

public SharedRowListIterator(Cell[][] objects,
                             int start,
                             int end)
Constructs a new shared array list iterator to iterate over a slice of the specified object array.

Parameters:
objects - the object array whose slice to iterate over
start - the index(one based, inclusive) to start iterating from
end - the index(one based, inclusive) to stop iterating at
Method Detail

getValue

protected Row getValue()
Specified by:
getValue in class org.millscript.commons.util.iterator.AbstractMapIterator<java.lang.Integer,Row>
See Also:
AbstractMapIterator.getValue()

hasNext

public boolean hasNext()
See Also:
MapIterator.hasNext()

outOfBounds

protected boolean outOfBounds()
Specified by:
outOfBounds in class org.millscript.commons.util.iterator.AbstractMapIterator<java.lang.Integer,Row>
See Also:
AbstractMapIterator.outOfBounds()


Copyright © 2006-2007 Open World Ltd. All Rights Reserved.