src/share/classes/java/util/function/DoubleBlock.java

Print this page
rev 6137 : 8004015: Add Extends and deaults for basic functional interface types
Summary: Adds the appropriate extends and default methods for  core functional interfaces used by the JSR335 libraries.
Reviewed-by: duke

@@ -31,11 +31,14 @@
  * <p/>This is the primitive type specialization of {@link Block} for
  * {@code double} and also may be used as a {@code Block<Double>}.
  *
  * @since 1.8
  */
-public interface DoubleBlock {
+public interface DoubleBlock extends Block<Double> {
+
+    @Override
+    public default void accept(Double t) { accept((double) t); }
 
     /**
      * Use the {@code double} input value in an operation which may modify
      * external state.
      *