摘要: JDK8中包含了许多内建的Java中常用到函数接口,比如Comparator或者Runnable接口,这些接口都增加了@FunctionalInterface注解以便能用在lambda上。 name type description Consumer Consumer< T > 接收T对象,不返回值 阅读全文
posted @ 2018-11-28 09:57 向南l 阅读(2295) 评论(1) 推荐(1) 编辑