public final class ByteCollectionCollection extends Object implements Serializable
ByteCollection
to the Collection
interface.
This implementation delegates most methods
to the provided ByteCollection
implementation in the "obvious" way.| Constructor and Description |
|---|
ByteCollectionCollection(ByteCollection collection)
Creates a
Collection wrapping
the specified ByteCollection. |
| 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 ByteCollection |
getByteCollection() |
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(ByteCollection collection)
Create a
Collection wrapping
the specified ByteCollection. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitequals, hashCodepublic ByteCollectionCollection(ByteCollection collection)
Collection wrapping
the specified ByteCollection.public static Collection wrap(ByteCollection collection)
Collection wrapping
the specified ByteCollection. When
the given collection is null,
returns null.collection - the (possibly null)
ByteCollection to wrapCollection wrapping the given
collection, or null when collection is
null.protected ByteCollection getByteCollection()
public boolean add(Object element)
add in interface Collectionpublic boolean addAll(Collection c)
addAll in interface Collectionpublic void clear()
clear in interface Collectionpublic boolean contains(Object element)
contains in interface Collectionpublic boolean containsAll(Collection c)
containsAll in interface Collectionpublic boolean isEmpty()
isEmpty in interface Collectionpublic Iterator iterator()
iterator in interface Iterableiterator in interface Collectionpublic boolean remove(Object element)
remove in interface Collectionpublic boolean removeAll(Collection c)
removeAll in interface Collectionpublic boolean retainAll(Collection c)
retainAll in interface Collectionpublic int size()
size in interface Collectionpublic Object[] toArray()
toArray in interface Collectionpublic Object[] toArray(Object[] A)
toArray in interface CollectionCopyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.