public class RichVoidFunction2<T1,T2> extends Object implements VoidFunction2<T1,T2>
| Constructor and Description |
|---|
RichVoidFunction2(VoidFunction2<T1,T2> f) |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(T1 v1,
T2 v2)
Apply the body of this function to the arguments.
|
String |
toString()
Creates a String representation of this object.
|
VoidFunction1<Tuple2<T1,T2>> |
tupled()
Creates a tupled version of this function: instead of 2 arguments, it
accepts a single Tuple2 argument.
|
public RichVoidFunction2(VoidFunction2<T1,T2> f)
public void apply(T1 v1, T2 v2) throws Exception
apply in interface VoidFunction2<T1,T2>Exceptionpublic VoidFunction1<Tuple2<T1,T2>> tupled()
Copyright © 2015. All rights reserved.