java.lang.Object
com.apptasticsoftware.rssreader.internal.StreamUtil

public class StreamUtil extends Object
Internal utility class for working with streams.
  • Method Details

    • asStream

      public static <T> Stream<T> asStream(Iterator<T> iterator)
      Creates a Stream from an Iterator.
      Type Parameters:
      T - The type of the elements in the Stream.
      Parameters:
      iterator - The Iterator to create the Stream from.
      Returns:
      A Stream created from the Iterator.