Package net.jqwik.engine.support
Class JqwikStreamSupport
java.lang.Object
net.jqwik.engine.support.JqwikStreamSupport
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Stream<T>static <T> Stream<T>static <T> Stream<T>Simulates Java 9's Stream.takeWhile() Taken from https://stackoverflow.com/a/46446546/32352static <T> Stream<T>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
-
Constructor Details
-
JqwikStreamSupport
public JqwikStreamSupport()
-
-
Method Details
-
zip
public static <L,R, Stream<T> zipT> (Stream<L> leftStream, Stream<R> rightStream, BiFunction<L, R, T> combiner) From https://stackoverflow.com/a/46230233/32352- Type Parameters:
L- left typeR- right typeT- result type- Parameters:
leftStream- leftrightStream- rightcombiner- combine- Returns:
- a zipped stream
-
concat
-
concat
-
takeWhile
Simulates Java 9's Stream.takeWhile() Taken from https://stackoverflow.com/a/46446546/32352TODO: Remove when moving to Java > 8
- Type Parameters:
T- a type- Parameters:
stream- a streamp- a predicate- Returns:
- a stream
-
toStream
-