org.datamixer.containers
Class CollectionContainer
java.lang.Object
org.datamixer.collections.DatamixerCollection
org.datamixer.collections.DatamixerList
org.datamixer.containers.CollectionContainer
- All Implemented Interfaces:
- java.util.Collection, java.util.List
- Direct Known Subclasses:
- CounterContainer
- public class CollectionContainer
- extends DatamixerList
A ListContainer manages a list of lists (DatamixerList objects).
(int index) returns a slice through the list, by returning a
ValueList that contains the value of each list at index.
|
Field Summary |
protected java.util.ArrayList |
lists_
generators |
| Methods inherited from class org.datamixer.collections.DatamixerList |
add, addAll, contains, containsAll, get, indexOf, lastIndexOf, listIterator, listIterator, remove, set, subList, toArray, toArray |
| Methods inherited from class org.datamixer.collections.DatamixerCollection |
add, addAll, clear, doInitialize, error, getDatamixerIterator, getDataType, getFormatPattern, getId, getName, getRepeat, getSize, initialize, isEmpty, iterator, remove, removeAll, retainAll, setDataType, setFormatPattern, setId, setName, setRepeat, size |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.List |
add, addAll, clear, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size |
lists_
protected java.util.ArrayList lists_
- generators
CollectionContainer
public CollectionContainer()
doGetSize
protected int doGetSize()
- Specified by:
doGetSize in class DatamixerCollection
createIterator
protected DatamixerIterator createIterator()
- Returns an iterator over the elements in this collection.
- Specified by:
createIterator in class DatamixerCollection
- Returns:
- an iterator over the elements in this collection.
getValue
public Value getValue(int index)
- Returns a
ValueListValue that contains a ValueList that
contains the element at index in each list.
- Specified by:
getValue in class DatamixerList
doGet
protected java.lang.Object doGet(int index)
- Returns a
ValueList that contains the element at
index in each list.
- Specified by:
doGet in class DatamixerList
newArray
public java.lang.Object[] newArray(int size)
- Description copied from class:
DatamixerList
- Returns the elements in this list as an array of length
size. If size is greater than the length of the
list, the additional elements in the array are null.
- Specified by:
newArray in class DatamixerList
addList
public void addList(DatamixerList value)
getLists
public java.util.ArrayList getLists()
getSlice
public ValueList getSlice(int index)
Copyright © 2004-2006 datamixer.org. All Rights Reserved.