T
- Self type used for conversionpublic interface To<T extends To<?>>
api.doThis(a->a*2)
.doThat(a->a+2)
.to(Stream::toStream)
.peek(System.out::println);
Modifier and Type | Method and Description |
---|---|
default <R> R |
to(java.util.function.Function<? super T,? extends R> reduce)
Fluent api for type conversion
|
default <R> R to(java.util.function.Function<? super T,? extends R> reduce)
reduce
- Funtion to convert this type