RFR (M) : JDK-8004561 : Addition Functional Interfaces for Lambda Libraries (original) (raw)
Mike Duigou mike.duigou at oracle.com
Fri Feb 15 20:13:57 UTC 2013
- Previous message: hg: jdk8/tl/langtools: 8008313: 8007052 breaks test/tools/javap/MethodParameters.java
- Next message: RFR (M) : JDK-8004561 : Addition Functional Interfaces for Lambda Libraries
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hello All;
This patch introduces a number of new functional interfaces for use by the lambda libraries. Also included are some name changes following JSR-225 EG review. The new interfaces are:
BiConsumer BiFunction BiPredicate BooleanSupplier DoublePredicate IntPredicate LongPredicate ObjDoubleConsumer ObjIntConsumer ObjLongConsumer ToDoubleBiFunction ToDoubleFunction ToIntBiFunction ToIntFunction ToLongBiFunction ToLongFunction
Renames:
Block -> Consumer BiBlock -> BiConsumer IntBlock -> IntConsumer DoubleBlock -> LongConsumer LongBlock -> LongConsumer UnaryOperator.operate -> UnaryOperator.apply LongUnaryOperator.operateAsLong -> LongUnaryOperator.applyAsLong DoubleUnaryOperator.operateAsDouble -> DoubleUnaryOperator.applyAsDouble IntUnaryOperator.operateAsInt -> IntUnaryOperator.applyAsInt LongBinaryOperator.operateAsLong -> LongBinaryOperator.applyAsLong DoubleBinaryOperator.operateAsDouble -> DoubleBinaryOperator.applyAsDouble IntBinaryOperator.operateAsInt -> IntBinaryOperator.applyAsInt
All of the changes outside the java.util.function package are made to accommodate these renamings.
The webrev is located at:
http://cr.openjdk.java.net/~mduigou/JDK-8004561/1/webrev/
and specdiff for the java.util.function package is at:
http://cr.openjdk.java.net/~mduigou/JDK-8004561/1/specdiff/
Thanks!
Mike
- Previous message: hg: jdk8/tl/langtools: 8008313: 8007052 breaks test/tools/javap/MethodParameters.java
- Next message: RFR (M) : JDK-8004561 : Addition Functional Interfaces for Lambda Libraries
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]