Class AbstractDelegatingCloseableIteratorSet<E>

  • All Implemented Interfaces:
    Iterable<E>, Collection<E>, Set<E>, org.infinispan.commons.util.CloseableIteratorCollection<E>, org.infinispan.commons.util.CloseableIteratorSet<E>

    public abstract class AbstractDelegatingCloseableIteratorSet<E>
    extends org.infinispan.commons.util.AbstractDelegatingSet<E>
    implements org.infinispan.commons.util.CloseableIteratorSet<E>
    • Constructor Detail

      • AbstractDelegatingCloseableIteratorSet

        public AbstractDelegatingCloseableIteratorSet()
    • Method Detail

      • delegate

        protected abstract org.infinispan.commons.util.CloseableIteratorSet<E> delegate()
        Specified by:
        delegate in class org.infinispan.commons.util.AbstractDelegatingSet<E>
      • iterator

        public org.infinispan.commons.util.CloseableIterator<E> iterator()
        Description copied from interface: org.infinispan.commons.util.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 org.infinispan.commons.util.CloseableIteratorCollection<E>
        Specified by:
        iterator in interface Collection<E>
        Specified by:
        iterator in interface Iterable<E>
        Specified by:
        iterator in interface Set<E>
        Overrides:
        iterator in class org.infinispan.commons.util.AbstractDelegatingCollection<E>
      • spliterator

        public org.infinispan.commons.util.CloseableSpliterator<E> spliterator()
        Description copied from interface: org.infinispan.commons.util.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 org.infinispan.commons.util.CloseableIteratorCollection<E>
        Specified by:
        spliterator in interface org.infinispan.commons.util.CloseableIteratorSet<E>
        Specified by:
        spliterator in interface Collection<E>
        Specified by:
        spliterator in interface Iterable<E>
        Specified by:
        spliterator in interface Set<E>
        Overrides:
        spliterator in class org.infinispan.commons.util.AbstractDelegatingCollection<E>