P1 - the type of first parameter this function applied toP2 - the type of second parameter this function applied toP3 - the type of thrid parameter this function applied toR - the type of the return value when this function applied to the parameter(s)public static interface Lang.Func3<P1,P2,P3,R>
Define a function structure that accept three parameter
Lang.Func0,
Lang.Function,
Lang.Func2,
Lang.Func4,
Lang.Func5| Modifier and Type | Method and Description |
|---|---|
R |
apply(P1 p1,
P2 p2,
P3 p3)
Run the function with parameters specified.
|
R apply(P1 p1, P2 p2, P3 p3) throws NotAppliedException, Lang.Break
Run the function with parameters specified.
In case implementing a partial function, it can throw out an NotAppliedException if the function is not defined for the given parameter(s)
p1 - argument 1p2 - argument 2p3 - argument 3NotAppliedException - if the function doesn’t apply to the parameter(s)Lang.Break - to short cut collecting operations (fold/reduce) on an containerCopyright © 2014–2021 OSGL (Open Source General Library). All rights reserved.