函数式接口 | 函数描述符 |
Predicate<T> | T->boolean |
Consumer<T> | T->void |
Function<T, R> | T->R |
Supplier<T> | ()->T |
UnaryOperator<T> | T->T |
BinaryOperator<T> | (T, T)->T |
BiPredicate<L, R> | (L, R)->boolean |
BiConsumer<T, U> | (T, U)->void |
BiFunction<T, U, R> | (T, U)->R |
//Java8 in action