org.datamixer.collections
Class CollectionWrapper

java.lang.Object
  extended byorg.datamixer.collections.DatamixerCollection
      extended byorg.datamixer.collections.CollectionWrapper
All Implemented Interfaces:
java.util.Collection

public class CollectionWrapper
extends DatamixerCollection

Wrapper for Collection.


Field Summary
protected  java.util.Collection collection_
          the associated collection
 
Fields inherited from class org.datamixer.collections.DatamixerCollection
dataType_, debugEnabled_, formatPattern_, id_, initialized_, logger_, name_, repeat_
 
Constructor Summary
CollectionWrapper()
           
CollectionWrapper(java.util.Collection collection)
           
 
Method Summary
 boolean contains(java.lang.Object obj)
          Returns true if this collection contains obj.
 boolean containsAll(java.util.Collection coll)
          Returns true if this collection contains all of the elements in coll.
protected  DatamixerIterator createIterator()
          Returns an iterator over the elements contained in this collection.
protected  int doGetSize()
          Returns the number of elements in this collection.
 java.util.Collection getCollection()
           
 boolean isEmpty()
          Returns true if this collection contains no elements.
 void setCollection(java.util.Collection value)
           
 java.lang.Object[] toArray()
          Returns an array containing all of the elements in this collection.
 java.lang.Object[] toArray(java.lang.Object[] target)
          Returns an array containing all of the elements in this collection; the runtime type of the returned array is that target.
 
Methods inherited from class org.datamixer.collections.DatamixerCollection
add, addAll, clear, doInitialize, error, getDatamixerIterator, getDataType, getFormatPattern, getId, getName, getRepeat, getSize, initialize, 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.Collection
equals, hashCode
 

Field Detail

collection_

protected java.util.Collection collection_
the associated collection

Constructor Detail

CollectionWrapper

public CollectionWrapper()

CollectionWrapper

public CollectionWrapper(java.util.Collection collection)
Method Detail

contains

public boolean contains(java.lang.Object obj)
Returns true if this collection contains obj.

Specified by:
contains in interface java.util.Collection
Specified by:
contains in class DatamixerCollection

containsAll

public boolean containsAll(java.util.Collection coll)
Returns true if this collection contains all of the elements in coll.

Specified by:
containsAll in interface java.util.Collection
Specified by:
containsAll in class DatamixerCollection

isEmpty

public boolean isEmpty()
Returns true if this collection contains no elements.

Specified by:
isEmpty in interface java.util.Collection
Overrides:
isEmpty in class DatamixerCollection

toArray

public java.lang.Object[] toArray()
Returns an array containing all of the elements in this collection.

Specified by:
toArray in interface java.util.Collection
Specified by:
toArray in class DatamixerCollection

toArray

public java.lang.Object[] toArray(java.lang.Object[] target)
Returns an array containing all of the elements in this collection; the runtime type of the returned array is that target.

Specified by:
toArray in interface java.util.Collection
Specified by:
toArray in class DatamixerCollection

createIterator

protected DatamixerIterator createIterator()
Returns an iterator over the elements contained in this collection.

Specified by:
createIterator in class DatamixerCollection
Returns:
an iterator over the elements contained in this collection.

doGetSize

protected int doGetSize()
Returns the number of elements in this collection. If the collection contains more than Integer.MAX_VALUE elements, returns Integer.MAX_VALUE.

Specified by:
doGetSize in class DatamixerCollection
Returns:
the number of elements in this collection.

getCollection

public java.util.Collection getCollection()

setCollection

public void setCollection(java.util.Collection value)


Copyright © 2004-2006 datamixer.org. All Rights Reserved.