Java函數式編程之Consumer和Predicate

歡迎你們訪問個人我的博客:L_SKH’Blogjava 1、Consumer 咱們先來看它的源碼:(咱們只來看他第一個方法)它是一個能夠傳參的接口,擁有一個accept方法。web @FunctionalInterface public interface Consumer<T> { /** * Performs this operation on the given argument.
相關文章
相關標籤/搜索