Java 函数式接口 输入输出总结

时间:2022-03-03 20:48:27

Java 函数式接口 输入输出总结

接口名称 输入和输出
BiConsumer <T,U> (T,U) -> void
BiFunction<T,U,R> (T,U) -> R
BiOperator<T> (T,T) -> T
BiPredicate<T,U> (T,U) -> boolean
BooleanSupplier () -> boolean
Consumer<T> (T) -> void
DoubleBinaryOperator (double,double) -> double
DoubleConsumer (double) -> void
DoubleFunction<R> (double) -> R
DoublePredicate (double) -> boolean
DoubleSupplier () -> double
DoubleToIntFunction (double) -> int
DoubleToLongFunction (double) -> long
DoubleUnaryOperator (double) -> double
Function<T,R> (T) -> R
IntBinaryOperator (int,int) -> int
IntConsumer (int) -> void
IntFunction<R> (int) -> R
IntPredicate (int) -> boolean
IntSupplier () -> int
IntToDoubleFunction (int) -> double
IntToLongFunction (int) -> long
IntUnaryOperator (int) -> int
LongBinaryOperator (long,long) -> long
LongConsumer (long) -> void
LongFunction<R> (long) -> R
LongPredicate (long) -> boolean
LongSupplier () -> long
LongToDoubleFunction (long) -> double
LongToIntFunction (long) ->int
LongUnaryOperator (long) -> long
ObjDoubleConsumer<T> (T,double) -> void
ObjIntConsumer<T> (T,int) -> T
ObjLongConsumer<T> (T,long) -> void
Predicate<T> (T) -> boolean
Supplier<T> () -> T
ToDoubleBiFunction<T,U> (T,U) -> double
ToDoubleFunction<T> (T) -> double
ToIntBiFunction<T,U> (T,U) -> int
ToIntFunction<T> (T) -> int
ToLongBiFunction<T,U> (T,U) -> long
ToLongFunction<T> (T) -> long
UnaryOperator<T> (T) -> T