Class CloseableIteratorCollectionAdapter<E>

java.lang.Object
org.infinispan.commons.util.CloseableIteratorCollectionAdapter<E>
All Implemented Interfaces:
Iterable<E>, Collection<E>, CloseableIteratorCollection<E>
Direct Known Subclasses:
CloseableIteratorSetAdapter

public class CloseableIteratorCollectionAdapter<E> extends Object implements CloseableIteratorCollection<E>
Author:
Radim Vansa <rvansa@redhat.com>
  • Field Details

  • Constructor Details

    • CloseableIteratorCollectionAdapter

      public CloseableIteratorCollectionAdapter(Collection<E> delegate)
  • Method Details

    • size

      public int size()
    • isEmpty

      public boolean isEmpty()
    • contains

      public boolean contains(Object o)
    • iterator

      public CloseableIterator<E> iterator()
      Description copied from interface: CloseableIteratorCollection

      This iterator should be explicitly closed when iteration upon it is completed. Failure to do so could cause resources to not be freed properly

      Specified by:
      iterator in interface CloseableIteratorCollection<E>
    • spliterator

      public CloseableSpliterator<E> spliterator()
      Description copied from interface: CloseableIteratorCollection

      This spliterator should be explicitly closed after it has been used. Failure to do so could cause resources to not be freed properly

      Specified by:
      spliterator in interface CloseableIteratorCollection<E>
    • toArray

      public Object[] toArray()
    • toArray

      public <T> T[] toArray(T[] a)
    • add

      public boolean add(E e)
    • remove

      public boolean remove(Object o)
    • containsAll

      public boolean containsAll(Collection<?> c)
    • addAll

      public boolean addAll(Collection<? extends E> c)
    • retainAll

      public boolean retainAll(Collection<?> c)
    • removeAll

      public boolean removeAll(Collection<?> c)
    • clear

      public void clear()