public class CloseableIteratorCollectionAdapter<E> extends java.lang.Object implements CloseableIteratorCollection<E>
Collection to CloseableIteratorCollection| Modifier and Type | Field and Description |
|---|---|
protected java.util.Collection<E> |
delegate |
| Constructor and Description |
|---|
CloseableIteratorCollectionAdapter(java.util.Collection<E> delegate) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(E e) |
boolean |
addAll(java.util.Collection<? extends E> c) |
void |
clear() |
boolean |
contains(java.lang.Object o) |
boolean |
containsAll(java.util.Collection<?> c) |
boolean |
isEmpty() |
CloseableIterator<E> |
iterator() |
boolean |
remove(java.lang.Object o) |
boolean |
removeAll(java.util.Collection<?> c) |
boolean |
retainAll(java.util.Collection<?> c) |
int |
size() |
CloseableSpliterator<E> |
spliterator() |
java.lang.Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitparallelStream, streamprotected final java.util.Collection<E> delegate
public CloseableIteratorCollectionAdapter(java.util.Collection<E> delegate)
public int size()
size in interface java.util.Collection<E>public boolean isEmpty()
isEmpty in interface java.util.Collection<E>public boolean contains(java.lang.Object o)
contains in interface java.util.Collection<E>public CloseableIterator<E> iterator()
CloseableIteratorCollectionThis iterator should be explicitly closed when iteration upon it is completed. Failure to do so could cause resources to not be freed properly
iterator in interface java.lang.Iterable<E>iterator in interface java.util.Collection<E>iterator in interface CloseableIteratorCollection<E>public CloseableSpliterator<E> spliterator()
CloseableIteratorCollectionThis spliterator should be explicitly closed after it has been used. Failure to do so could cause resources to not be freed properly
spliterator in interface java.lang.Iterable<E>spliterator in interface java.util.Collection<E>spliterator in interface CloseableIteratorCollection<E>public java.lang.Object[] toArray()
toArray in interface java.util.Collection<E>public <T> T[] toArray(T[] a)
toArray in interface java.util.Collection<E>public boolean remove(java.lang.Object o)
remove in interface java.util.Collection<E>public boolean containsAll(java.util.Collection<?> c)
containsAll in interface java.util.Collection<E>public boolean addAll(java.util.Collection<? extends E> c)
addAll in interface java.util.Collection<E>public boolean retainAll(java.util.Collection<?> c)
retainAll in interface java.util.Collection<E>public boolean removeAll(java.util.Collection<?> c)
removeAll in interface java.util.Collection<E>public void clear()
clear in interface java.util.Collection<E>