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

Print this page
rev 7675 : 8019840: Spec updates for java.util.function
Reviewed-by: mduigou
Contributed-by: brian.goetz@oracle.com

*** 23,43 **** * questions. */ package java.util.function; /** ! * A supplier of {@code double} values. This is the {@code double}-providing ! * primitive specialization of {@link Supplier}. * * @see Supplier * @since 1.8 */ @FunctionalInterface public interface DoubleSupplier { /** ! * Returns a {@code double} value. * ! * @return a {@code double} value */ double getAsDouble(); } --- 23,49 ---- * questions. */ package java.util.function; /** ! * Represents a supplier of {@code double}-valued results. This is the ! * {@code double}-producing primitive specialization of {@link Supplier}. ! * ! * <p>There is no requirement that a distinct result be returned each ! * time the supplier is invoked. ! * ! * <p>This is a <a href="package-summary.html">functional interface</a> ! * whose functional method is {@link #getAsDouble()}. * * @see Supplier * @since 1.8 */ @FunctionalInterface public interface DoubleSupplier { /** ! * Gets a result. * ! * @return a result */ double getAsDouble(); }