This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private int methodWithoutParameter() { | |
return 0; | |
} | |
/** | |
* Equals exactly method signature of java.util.function.Function:apply | |
*/ | |
private int methodWithParameter(int x) { | |
return x; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@FunctionalInterface | |
public interface SimpleFunctionalInterface { | |
public int returnAnswerToUltimateQuestion(); | |
} | |
@Test | |
public void normalInterfaceOnlyOneAbstractMethod() { | |
int x = 1; |