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

Print this page
rev 7047 : 8004015: Additional static and instance utils for functional interfaces.
Reviewed-by: briangoetz


  23  * questions.
  24  */
  25 package java.util.function;
  26 
  27 
  28 /**
  29  * A supplier of {@code boolean} values. This is the {@code boolean}-providing
  30  * primitive specialization of {@link Supplier}.
  31  *
  32  * @see Supplier
  33  * @since 1.8
  34  */
  35 @FunctionalInterface
  36 public interface BooleanSupplier {
  37 
  38     /**
  39      * Returns a {@code boolean} value.
  40      *
  41      * @return a {@code boolean} value
  42      */
  43     public boolean getAsBoolean();
  44 }


  23  * questions.
  24  */
  25 package java.util.function;
  26 
  27 
  28 /**
  29  * A supplier of {@code boolean} values. This is the {@code boolean}-providing
  30  * primitive specialization of {@link Supplier}.
  31  *
  32  * @see Supplier
  33  * @since 1.8
  34  */
  35 @FunctionalInterface
  36 public interface BooleanSupplier {
  37 
  38     /**
  39      * Returns a {@code boolean} value.
  40      *
  41      * @return a {@code boolean} value
  42      */
  43     boolean getAsBoolean();
  44 }