org.apache.commons.collections.primitives.adapters
public final class CollectionLongCollection extends AbstractCollectionLongCollection implements java.io.Serializable
Number
-valued
Collection
to the
LongCollection
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 |
---|
CollectionLongCollection(java.util.Collection collection)
Creates an
LongCollection wrapping
the specified Collection . |
Modifier and Type | Method and Description |
---|---|
protected java.util.Collection |
getCollection() |
static LongCollection |
wrap(java.util.Collection collection)
Create an
LongCollection wrapping
the specified Collection . |
add, addAll, clear, contains, containsAll, isEmpty, iterator, removeAll, removeElement, retainAll, size, toArray, toArray, toString
public CollectionLongCollection(java.util.Collection collection)
LongCollection
wrapping
the specified Collection
.wrap(java.util.Collection)
public static LongCollection wrap(java.util.Collection collection)
LongCollection
wrapping
the specified Collection
. When
the given collection is null
,
returns null
.collection
- the (possibly null
) Collection
to wrapLongCollection
wrapping the given
collection, or null
when collection is
null
.protected java.util.Collection getCollection()
getCollection
in class AbstractCollectionLongCollection
Copyright (c) 2002-2003 - Apache Software Foundation