public final class DoubleCollectionCollection extends Object implements Serializable
DoubleCollection
to the Collection
interface.
This implementation delegates most methods
to the provided DoubleCollection
implementation in the "obvious" way.Constructor and Description |
---|
DoubleCollectionCollection(DoubleCollection collection)
Creates a
Collection wrapping
the specified DoubleCollection . |
Modifier and Type | Method and Description |
---|---|
boolean |
add(Object element) |
boolean |
addAll(Collection c) |
void |
clear() |
boolean |
contains(Object element) |
boolean |
containsAll(Collection c) |
protected DoubleCollection |
getDoubleCollection() |
boolean |
isEmpty() |
Iterator |
iterator()
|
boolean |
remove(Object element) |
boolean |
removeAll(Collection c) |
boolean |
retainAll(Collection c) |
int |
size() |
Object[] |
toArray() |
Object[] |
toArray(Object[] A) |
String |
toString() |
static Collection |
wrap(DoubleCollection collection)
Create a
Collection wrapping
the specified DoubleCollection . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
equals, hashCode
public DoubleCollectionCollection(DoubleCollection collection)
Collection
wrapping
the specified DoubleCollection
.public static Collection wrap(DoubleCollection collection)
Collection
wrapping
the specified DoubleCollection
. When
the given collection is null
,
returns null
.collection
- the (possibly null
)
DoubleCollection
to wrapCollection
wrapping the given
collection, or null
when collection is
null
.protected DoubleCollection getDoubleCollection()
public boolean add(Object element)
add
in interface Collection
public boolean addAll(Collection c)
addAll
in interface Collection
public void clear()
clear
in interface Collection
public boolean contains(Object element)
contains
in interface Collection
public boolean containsAll(Collection c)
containsAll
in interface Collection
public boolean isEmpty()
isEmpty
in interface Collection
public Iterator iterator()
iterator
in interface Iterable
iterator
in interface Collection
public boolean remove(Object element)
remove
in interface Collection
public boolean removeAll(Collection c)
removeAll
in interface Collection
public boolean retainAll(Collection c)
retainAll
in interface Collection
public int size()
size
in interface Collection
public Object[] toArray()
toArray
in interface Collection
public Object[] toArray(Object[] A)
toArray
in interface Collection
Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.