摘要: //函数接口 package interfaces; @FunctionalInterface public interface MyFunction2<T,R> { public R getValue(T t,T t2); } //实际实现调用 package lamdaTest; import 阅读全文
posted @ 2022-01-29 15:51 红尘沙漏 阅读(198) 评论(0) 推荐(0) 编辑
摘要: //函数式接口package lamdaTest; @FunctionalInterface public interface MyFunction { public Integer getValue(Integer num); } //具体实现调用 /** * 执行实现方法 */ @Test pu 阅读全文
posted @ 2022-01-29 14:35 红尘沙漏 阅读(38) 评论(0) 推荐(0) 编辑