P1 - the type of first parameter this function applied toP2 - the type of second parameter this function applied toR - the type of the return value when this function applied to the parameter(s)public static interface Osgl.Func2<P1,P2,R>
Osgl.Func0,
Osgl.Function,
Osgl.Func3,
Osgl.Func4,
Osgl.Func5,
Osgl.F2| Modifier and Type | Method and Description |
|---|---|
R |
apply(P1 p1,
P2 p2)
Apply the two params to the function
|
R apply(P1 p1, P2 p2) 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)
p1 - the first argument of type P1p2 - the second argument of type P2NotAppliedException - 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.