Skip to content

Instantly share code, notes, and snippets.

@dlhartveld
Last active December 14, 2015 08:29
Show Gist options
  • Save dlhartveld/5058170 to your computer and use it in GitHub Desktop.
Save dlhartveld/5058170 to your computer and use it in GitHub Desktop.
Example of interface implementation as anonymous inner class instatiation in Java 7.
java.util.function.BiFunction<String, String, String> concat
= new java.util.function.BiFunction<String, String, String>() {
@Override
public String apply(String t, String u) {
return t + u;
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment