public final class CollectionIntCollection extends AbstractCollectionIntCollection implements java.io.Serializable
Number
-valued
Collection
to the
IntCollection
interface.
This implementation delegates most methods
to the provided Collection
implementation in the "obvious" way.Modifier and Type | Field and Description |
---|---|
private java.util.Collection |
_collection |
Constructor and Description |
---|
CollectionIntCollection(java.util.Collection collection)
Creates an
IntCollection wrapping
the specified Collection . |
Modifier and Type | Method and Description |
---|---|
protected java.util.Collection |
getCollection() |
static IntCollection |
wrap(java.util.Collection collection)
Create an
IntCollection wrapping
the specified Collection . |
add, addAll, clear, contains, containsAll, isEmpty, iterator, removeAll, removeElement, retainAll, size, toArray, toArray, toString
public CollectionIntCollection(java.util.Collection collection)
IntCollection
wrapping
the specified Collection
.wrap(java.util.Collection)
public static IntCollection wrap(java.util.Collection collection)
IntCollection
wrapping
the specified Collection
. When
the given collection is null
,
returns null
.collection
- the (possibly null
) Collection
to wrapIntCollection
wrapping the given
collection, or null
when collection is
null
.protected java.util.Collection getCollection()
getCollection
in class AbstractCollectionIntCollection
Copyright (c) 2002-2003 - Apache Software Foundation