org.millscript.office.spreadsheet.rows
Class ISharedRowList

java.lang.Object
  extended by org.millscript.commons.util.list.AbstractIList<Row>
      extended by org.millscript.office.spreadsheet.rows.ISharedRowList
All Implemented Interfaces:
org.millscript.commons.util.IList<Row>, org.millscript.commons.util.IMap<java.lang.Integer,Row>

public class ISharedRowList
extends org.millscript.commons.util.list.AbstractIList<Row>


Nested Class Summary
 
Nested classes/interfaces inherited from class org.millscript.commons.util.list.AbstractIList
org.millscript.commons.util.list.AbstractIList.ListMapletIterator<V>, org.millscript.commons.util.list.AbstractIList.ListMapletList<V>
 
Constructor Summary
ISharedRowList(Cell[][] rows, int start, int end)
          Constructs a new shared store worksheet with a slice of the specified backing row array.
 
Method Summary
protected  Row doGet(int pos)
           
protected  org.millscript.commons.util.IList<Row> doSlice(int first, int last, boolean share)
           
 int indexOf(Row value)
           
 org.millscript.commons.util.ListIterator<Row> iterator(boolean share)
           
 int size()
           
 
Methods inherited from class org.millscript.commons.util.list.AbstractIList
allButFirst, allButLast, allFirst, allLast, contains, contains, contains, contains0, contains0, contains0, containsAll, containsKey, containsKey, containsKey0, containsKey0, containsSlice, containsSlice0, containsValue, decorate, equals, first, get, get, get0, get0, getDefault, hashCode, indexOf0, isEmtpy, keyList, last, mapletList, setDefault, setDefault, sharedMapletList, sharedValueList, slice, slice0, toArray, toArray, toString, valueList
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ISharedRowList

public ISharedRowList(Cell[][] rows,
                      int start,
                      int end)
Constructs a new shared store worksheet with a slice of the specified backing row array.

Parameters:
rows - the backing object array(only kept if start <= end )
start - the index(one based, inclusive) of the first element in the slice
end - the index(one based, inclusive) of the last element in the slice. If end < start, the new list will be empty
Method Detail

doGet

protected Row doGet(int pos)
Specified by:
doGet in class org.millscript.commons.util.list.AbstractIList<Row>
See Also:
AbstractIList.doGet(int)

doSlice

protected org.millscript.commons.util.IList<Row> doSlice(int first,
                                                         int last,
                                                         boolean share)
Specified by:
doSlice in class org.millscript.commons.util.list.AbstractIList<Row>
See Also:
AbstractIList.doSlice(int, int, boolean)

indexOf

public int indexOf(Row value)
See Also:
org.millscript.commons.util.IList#indexOf(V)

iterator

public org.millscript.commons.util.ListIterator<Row> iterator(boolean share)
See Also:
IList.iterator(boolean)

size

public int size()
See Also:
IMap.size()


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