Skip to content

uppercase

Mahmoud Ben Hassine edited this page Nov 21, 2015 · 4 revisions

uppercase

Synopsis

Transforms a String to upper case.

Parameters

N/A

Example

Stream<String> stream = Stream.of("a", "B");

UnixStream.unixify(stream)
   .uppercase()
   .to(stdOut()); // prints "A", "B"

// Or

UnixStream.from(stream)
   .pipe(uppercase())
   .to(stdOut()); // prints "A", "B"

// Or

stream
   .map(Functions.uppercase())
   .forEach(System.out::println); // prints "A", "B"
Clone this wiki locally