org.apache.commons.collections.primitives.adapters
public final class IntCollectionCollection extends AbstractIntCollectionCollection implements java.io.Serializable
IntCollection
to the Collection
interface.
This implementation delegates most methods
to the provided IntCollection
implementation in the "obvious" way.Modifier and Type | Field and Description |
---|---|
private IntCollection |
_collection |
Constructor and Description |
---|
IntCollectionCollection(IntCollection collection)
Creates a
Collection wrapping
the specified IntCollection . |
Modifier and Type | Method and Description |
---|---|
protected IntCollection |
getIntCollection() |
static java.util.Collection |
wrap(IntCollection collection)
Create a
Collection wrapping
the specified IntCollection . |
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray, toString
private IntCollection _collection
public IntCollectionCollection(IntCollection collection)
Collection
wrapping
the specified IntCollection
.public static java.util.Collection wrap(IntCollection collection)
Collection
wrapping
the specified IntCollection
. When
the given collection is null
,
returns null
.collection
- the (possibly null
)
IntCollection
to wrapCollection
wrapping the given
collection, or null
when collection is
null
.protected IntCollection getIntCollection()
getIntCollection
in class AbstractIntCollectionCollection
Copyright (c) 2002-2003 - Apache Software Foundation