-
Notifications
You must be signed in to change notification settings - Fork 15
str
Mahmoud Ben Hassine edited this page Nov 21, 2015
·
4 revisions
Transforms a stream of objects into a stream of Strings by calling toString
on each object.
N/A
Stream<String> stream = Stream.of(1, 2);
UnixStream.unixify(stream)
.str()
.to(stdOut()); // prints "1", "2"
// Or
UnixStream.from(stream)
.pipe(str())
.to(stdOut()); // prints "1", "2"
// Or
stream
.map(Functions.str())
.forEach(System.out::println); // prints "1", "2"
UnixStream is created with passion by Mahmoud Ben Hassine