Class StreamScanner<T>
- java.lang.Object
-
- dev.aherscu.qa.testing.extra.supermachine.Scanner<T>
-
- dev.aherscu.qa.testing.extra.supermachine.StreamScanner<T>
-
- Type Parameters:
T
- the types of the stream items.
public final class StreamScanner<T> extends Scanner<T>
A scanner iterating over items of a stream. Nothing really fancy.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected <X> Scanner<X>
create(Stream<X> source)
Constructs a scanner out of a source stream.static <X> Scanner<X>
scan(Stream<X> stream)
Create a scanner iterating over a stream.
-
-
-
Method Detail
-
scan
public static <X> Scanner<X> scan(Stream<X> stream)
Create a scanner iterating over a stream.- Type Parameters:
X
- the type of stream items.- Parameters:
stream
- the stream to scan.- Returns:
- the scanner
-
-