How do I create Function1 object for use in flatMap method of finagle's Future object in Java?
Tried this:
Function1<String, String> f = new Function1<String, String>() {
@Override
public String apply(String s) {
return null;
}
};
But it doesn't work:
Error:(22, 73) java: is not abstract and does not override abstract method andThen$mcVJ$sp(scala.Function1) in scala.Function1