jdk/src/share/classes/java/util/function/LongSupplier.java
changeset 16011 890a7ed97f6c
parent 15647 314007859004
child 17695 032254f2467b
equal deleted inserted replaced
16010:2727163b5df5 16011:890a7ed97f6c
    23  * questions.
    23  * questions.
    24  */
    24  */
    25 package java.util.function;
    25 package java.util.function;
    26 
    26 
    27 /**
    27 /**
    28  * A supplier of {@code long} values.
    28  * A supplier of {@code long} values. This is the {@code long}-providing
       
    29  * primitive specialization of {@link Supplier}.
    29  *
    30  *
    30  * <p/>This is the primitive type specialization of {@link Supplier} for
    31  * @see Supplier
    31  * {@code long} and also may be used as a {@code Supplier<Long>}.
       
    32  *
       
    33  * @since 1.8
    32  * @since 1.8
    34  */
    33  */
    35 @FunctionalInterface
    34 @FunctionalInterface
    36 public interface LongSupplier {
    35 public interface LongSupplier {
    37 
    36 
    38     /**
    37     /**
    39      * Returns a {@code long} value.
    38      * Returns a {@code long} value.
    40      *
    39      *
    41      * @return a {@code long} value.
    40      * @return a {@code long} value
    42      */
    41      */
    43     public long getAsLong();
    42     public long getAsLong();
    44 }
    43 }