Class StreamAdapter<T>

  • All Implemented Interfaces:
    java.lang.AutoCloseable, java.lang.Iterable<T>

    public class StreamAdapter<T>
    extends java.lang.Object
    implements java.lang.Iterable<T>, java.lang.AutoCloseable
    Iterable adapter for streams.
    • Constructor Summary

      Constructors 
      Constructor Description
      StreamAdapter​(java.util.stream.Stream<T> stream)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      java.util.Iterator<T> iterator()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Constructor Detail

      • StreamAdapter

        public StreamAdapter​(java.util.stream.Stream<T> stream)
    • Method Detail

      • iterator

        public java.util.Iterator<T> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<T>
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable