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