public final class CollectionShortCollection extends AbstractCollectionShortCollection implements java.io.Serializable
Number-valued
Collection to the
ShortCollection 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 |
|---|
CollectionShortCollection(java.util.Collection collection)
Creates an
ShortCollection wrapping
the specified Collection. |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.Collection |
getCollection() |
static ShortCollection |
wrap(java.util.Collection collection)
Create an
ShortCollection wrapping
the specified Collection. |
add, addAll, clear, contains, containsAll, isEmpty, iterator, removeAll, removeElement, retainAll, size, toArray, toArray, toStringpublic CollectionShortCollection(java.util.Collection collection)
ShortCollection wrapping
the specified Collection.wrap(java.util.Collection)public static ShortCollection wrap(java.util.Collection collection)
ShortCollection wrapping
the specified Collection. When
the given collection is null,
returns null.collection - the (possibly null) Collection to wrapShortCollection wrapping the given
collection, or null when collection is
null.protected java.util.Collection getCollection()
getCollection in class AbstractCollectionShortCollectionCopyright (c) 2002-2003 - Apache Software Foundation