函数式接口实现以及专业化

Redorblack
函数式接口                  实现类接口
Current Interface        Preferred Interface
Function<Integer, R>       IntFunction<R>
Function<Long, R>          LongFunction<R>
Function<Double, R>        DoubleFunction<R>
Function<Double,Integer>   DoubleToIntFunction
Function<Double,Long>      DoubleToLongFunction
Function<Long,Double>      LongToDoubleFunction
Function<Long,Integer>     LongToIntFunction
Function<R,Integer>        ToIntFunction<R>
Function<R,Long>           ToLongFunction<R>
Function<R,Double>.        ToDoubleFunction<R>
Function<T,T>.             UnaryOperator<T>
BiFunction<T,T,T>          BinaryOperator<T>
Consumer<Integer>          IntConsumer
Consumer<Double>           DoubleConsumer
Consumer<Long>             LongConsumer
BiConsumer<T,Integer>      ObjIntConsumer<T>
BiConsumer<T,Long>         ObjLongConsumer<T>
BiConsumer<T,Double>       ObjDoubleConsumer<T>
Predicate<Integer>         IntPredicate
Predicate<Double>          DoublePredicate
Predicate<Long>            LongPredicate
Supplier<Integer>          IntSupplier
Supplier<Double>           DoubleSupplier
Supplier<Long>             LongSupplier
Supplier<Boolean>          BooleanSupplier
UnaryOperator<Integer>     IntUnaryOperator
UnaryOperator<Double>      DoubleUnaryOperator
UnaryOperator<Long>        LongUnaryOperator
BinaryOperator<Integer>    IntBinaryOperator
BinaryOperator<Long>       LongBinaryOperator
BinaryOperator<Double>     DoubleBinaryOperator
Function<T, Boolean>       Predicate<T>
BiFunction<T,U,Boolean>    BiPredicate<T,U>
阅读 176

后端菜鸟记录美好生活

36 声望
0 粉丝
0 条评论
你知道吗?

后端菜鸟记录美好生活

36 声望
0 粉丝
宣传栏