s-day07-函数式接口的使用(将lambda作为实现类对象)
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
package com.inmind.functional_interface02;
|
||||
|
||||
@FunctionalInterface
|
||||
public interface MyFunctionalInterface {
|
||||
// void method();
|
||||
// void method(int a);
|
||||
// int method(int a);
|
||||
int getValue(int a,int b);
|
||||
|
||||
/*boolean equals(Object obj);
|
||||
String toString();
|
||||
int hashCode();*/
|
||||
}
|
||||
Reference in New Issue
Block a user