s-day07-函数式接口的使用(将lambda作为实现类对象)

This commit is contained in:
2026-08-08 11:14:17 +08:00
parent 20598812d0
commit 9774ac3f0b
3 changed files with 73 additions and 4 deletions
@@ -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();*/
}