Class ClosureBiFunction<T,U,R>
java.lang.Object
com.illumon.iris.db.plot.util.functions.SerializableClosure<R>
com.illumon.iris.db.plot.util.functions.ClosureBiFunction<T,U,R>
- All Implemented Interfaces:
SerializableBiFunction<T,,U, R> Serializable,BiFunction<T,U, R>
public class ClosureBiFunction<T,U,R>
extends SerializableClosure<R>
implements SerializableBiFunction<T,U,R>
Wraps a
SerializableBiFunction with the API of a function.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionClosureBiFunction(groovy.lang.Closure<R> closure) Creates a SerializableClosure instance with the two-argumentclosure. -
Method Summary
Methods inherited from class com.illumon.iris.db.plot.util.functions.SerializableClosure
getClosureMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.function.BiFunction
andThen
-
Constructor Details
-
ClosureBiFunction
Creates a SerializableClosure instance with the two-argumentclosure.- Parameters:
closure- closure
-
-
Method Details
-
apply
Applies this function to the given arguments.- Specified by:
applyin interfaceBiFunction<T,U, R> - Parameters:
t- the first function argumentu- the second function argument- Returns:
- the function result
-