FROM - The type of the element the transformer function applied toTO - The type of the result of transform of <FROM>public abstract static class Osgl.Transformer<FROM,TO> extends Osgl.F1<FROM,TO>
Osgl.F1 function| Constructor and Description |
|---|
Transformer() |
| Modifier and Type | Method and Description |
|---|---|
TO |
apply(FROM from)
Apply this function to <T> type parameter.
|
abstract TO |
transform(FROM from)
The place sub class to implement the transform logic
|
andThen, andThen, applyOrElse, compose, compose, compose, compose, compose, compose, curry, invert, lift, orElse, timesbreakOutpublic final TO apply(FROM from)
Osgl.FunctionIn case implementing a partial function, it can throw out an
NotAppliedException if the function is not defined for
the given parameter(s)
from - the argumentU type resultCopyright © 2017. All Rights Reserved.