T - the type of input parameterU - the type of the return value when this function applied to the parameter(s)public static interface Osgl.Function<T,U>
Osgl.Func0,
Osgl.Function,
Osgl.Func2,
Osgl.Func3,
Osgl.Func4,
Osgl.Func5,
Osgl.F1| Modifier and Type | Method and Description |
|---|---|
U |
apply(T t)
Apply this function to <T> type parameter.
|
U apply(T t) throws NotAppliedException, Osgl.Break
In case implementing a partial function, it can throw out an
NotAppliedException if the function is not defined for
the given parameter(s)
t - the argumentU type resultNotAppliedException - if the function doesn't apply to the parameter(s)Osgl.Break - to short cut collecting operations (fold/reduce) on an containerCopyright © 2017. All Rights Reserved.