org.apache.commons.collections.primitives.adapters
Class IntCollectionCollection

java.lang.Object
  extended by org.apache.commons.collections.primitives.adapters.AbstractIntCollectionCollection
      extended by org.apache.commons.collections.primitives.adapters.IntCollectionCollection
All Implemented Interfaces:
java.io.Serializable, java.lang.Iterable, java.util.Collection

public final class IntCollectionCollection
extends AbstractIntCollectionCollection
implements java.io.Serializable

Adapts an IntCollection to the Collection interface.

This implementation delegates most methods to the provided IntCollection implementation in the "obvious" way.

Since:
Commons Primitives 1.0
Version:
$Revision: 1.3 $ $Date: 2003/10/16 20:49:39 $
Author:
Rodney Waldhoff
See Also:
Serialized Form

Field Summary
private  IntCollection _collection
           
 
Constructor Summary
IntCollectionCollection(IntCollection collection)
          Creates a Collection wrapping the specified IntCollection.
 
Method Summary
protected  IntCollection getIntCollection()
           
static java.util.Collection wrap(IntCollection collection)
          Create a Collection wrapping the specified IntCollection.
 
Methods inherited from class org.apache.commons.collections.primitives.adapters.AbstractIntCollectionCollection
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Collection
equals, hashCode
 

Field Detail

_collection

private IntCollection _collection
Constructor Detail

IntCollectionCollection

public IntCollectionCollection(IntCollection collection)
Creates a Collection wrapping the specified IntCollection.

See Also:
wrap(org.apache.commons.collections.primitives.IntCollection)
Method Detail

wrap

public static java.util.Collection wrap(IntCollection collection)
Create a Collection wrapping the specified IntCollection. When the given collection is null, returns null.

Parameters:
collection - the (possibly null) IntCollection to wrap
Returns:
a Collection wrapping the given collection, or null when collection is null.

getIntCollection

protected IntCollection getIntCollection()
Specified by:
getIntCollection in class AbstractIntCollectionCollection


Copyright (c) 2002-2003 - Apache Software Foundation