src/share/classes/java/util/function/IntSupplier.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 int} values. This is the {@code int}-providing ! * primitive specialization of {@link Supplier}. * * @see Supplier * @since 1.8 */ @FunctionalInterface public interface IntSupplier { /** ! * Returns an {@code int} value. * ! * @return an {@code int} value */ int getAsInt(); } --- 23,49 ---- * questions. */ package java.util.function; /** ! * Represents a supplier of {@code int}-valued results. This is the ! * {@code int}-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 #getAsInt()}. * * @see Supplier * @since 1.8 */ @FunctionalInterface public interface IntSupplier { /** ! * Gets a result. * ! * @return a result */ int getAsInt(); }