Skip to content

Instantly share code, notes, and snippets.

View stevenschwenke's full-sized avatar

Steven stevenschwenke

View GitHub Profile
@FunctionalInterface
public interface SimpleFunctionalInterface {
public int returnAnswerToUltimateQuestion();
}
@Test
public void normalInterfaceOnlyOneAbstractMethod() {
int x = 1;
private int methodWithoutParameter() {
return 0;
}
/**
* Equals exactly method signature of java.util.function.Function:apply
*/
private int methodWithParameter(int x) {
return x;
}