Klasse JqwikStreamSupport

java.lang.Object
net.jqwik.engine.support.JqwikStreamSupport

public class JqwikStreamSupport extends Object
  • Konstruktordetails

    • JqwikStreamSupport

      public JqwikStreamSupport()
  • Methodendetails

    • zip

      public static <L, R, T> Stream<T> zip(Stream<L> leftStream, Stream<R> rightStream, BiFunction<L,R,T> combiner)
      From https://stackoverflow.com/a/46230233/32352
      Typparameter:
      L - left type
      R - right type
      T - result type
      Parameter:
      leftStream - left
      rightStream - right
      combiner - combine
      Gibt zurück:
      a zipped stream
    • concat

      @SafeVarargs public static <T extends @Nullable Object> Stream<T> concat(Stream<T>... streams)
    • concat

      public static <T extends @Nullable Object> Stream<T> concat(List<Stream<T>> streams)
    • takeWhile

      public static <T extends @Nullable Object> Stream<T> takeWhile(Stream<T> stream, Predicate<? super T> p)
      Simulates Java 9's Stream.takeWhile() Taken from https://stackoverflow.com/a/46446546/32352

      TODO: Remove when moving to Java > 8

      Typparameter:
      T - a type
      Parameter:
      stream - a stream
      p - a predicate
      Gibt zurück:
      a stream
    • toStream

      public static <T extends @Nullable Object> Stream<T> toStream(Optional<T> optional)