Interface CloseableIteratorCollection<E>

    • Method Detail

      • iterator

        CloseableIterator<E> iterator()

        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 java.util.Collection<E>
        Specified by:
        iterator in interface java.lang.Iterable<E>
      • spliterator

        CloseableSpliterator<E> spliterator()

        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 java.util.Collection<E>
        Specified by:
        spliterator in interface java.lang.Iterable<E>
      • stream

        default java.util.stream.Stream<E> stream()

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

        Specified by:
        stream in interface java.util.Collection<E>
      • parallelStream

        default java.util.stream.Stream<E> parallelStream()

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

        Specified by:
        parallelStream in interface java.util.Collection<E>