Class ReuseableStream<T>


  • public class ReuseableStream<T>
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.List<T> cache  
      private java.util.Spliterator<T> source  
    • Constructor Summary

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.stream.Stream<T> getStream()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • cache

        private final java.util.List<T> cache
      • source

        private final java.util.Spliterator<T> source
    • Constructor Detail

      • ReuseableStream

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

      • getStream

        public java.util.stream.Stream<T> getStream()