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

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

*** 24,44 **** */ package java.util.function; /** ! * A supplier of {@code boolean} values. This is the {@code boolean}-providing ! * primitive specialization of {@link Supplier}. * * @see Supplier * @since 1.8 */ @FunctionalInterface public interface BooleanSupplier { /** ! * Returns a {@code boolean} value. * ! * @return a {@code boolean} value */ boolean getAsBoolean(); } --- 24,50 ---- */ package java.util.function; /** ! * Represents a supplier of {@code boolean}-valued results. This is the ! * {@code boolean}-producing primitive specialization of {@link Supplier}. ! * ! * <p>There is no requirement that a new or 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 #getAsBoolean()}. * * @see Supplier * @since 1.8 */ @FunctionalInterface public interface BooleanSupplier { /** ! * Gets a result. * ! * @return a result */ boolean getAsBoolean(); }