public abstract static class Lang.V2<P1,P2> extends Lang.F2<P1,P2,Void>
| Constructor and Description |
|---|
V2() |
| Modifier and Type | Method and Description |
|---|---|
Void |
apply(P1 p1,
P2 p2)
Apply the two params to the function
|
abstract void |
visit(P1 p1,
P2 p2) |
andThen, andThen, applyOrElse, curry, curry, lift, orElsebreakOutpublic final Void apply(P1 p1, P2 p2) throws NotAppliedException, Lang.Break
Lang.Func2Apply the two params to the function
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)Lang.Break - to short cut collecting operations (fold/reduce) on an containerCopyright © 2014–2019 OSGL (Open Source General Library). All rights reserved.