org.datamixer.containers
Class CollectionContainer

java.lang.Object
  extended byorg.datamixer.collections.DatamixerCollection
      extended byorg.datamixer.collections.DatamixerList
          extended byorg.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
 
Fields inherited from class org.datamixer.collections.DatamixerCollection
dataType_, debugEnabled_, formatPattern_, id_, initialized_, logger_, name_, repeat_
 
Constructor Summary
CollectionContainer()
           
 
Method Summary
 void addList(DatamixerList value)
           
protected  DatamixerIterator createIterator()
          Returns an iterator over the elements in this collection.
protected  java.lang.Object doGet(int index)
          Returns a ValueList that contains the element at index in each list.
protected  int doGetSize()
           
 java.util.ArrayList getLists()
           
 ValueList getSlice(int index)
           
 Value getValue(int index)
          Returns a ValueListValue that contains a ValueList that contains the element at index in each list.
 java.lang.Object[] newArray(int size)
          Returns the elements in this list as an array of length size.
 
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
 

Field Detail

lists_

protected java.util.ArrayList lists_
generators

Constructor Detail

CollectionContainer

public CollectionContainer()
Method Detail

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.