22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25 package java.util.function;
26
27 /**
28 * A supplier of {@code long} values. This is the {@code long}-providing
29 * primitive specialization of {@link Supplier}.
30 *
31 * @see Supplier
32 * @since 1.8
33 */
34 @FunctionalInterface
35 public interface LongSupplier {
36
37 /**
38 * Returns a {@code long} value.
39 *
40 * @return a {@code long} value
41 */
42 public long getAsLong();
43 }
|
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25 package java.util.function;
26
27 /**
28 * A supplier of {@code long} values. This is the {@code long}-providing
29 * primitive specialization of {@link Supplier}.
30 *
31 * @see Supplier
32 * @since 1.8
33 */
34 @FunctionalInterface
35 public interface LongSupplier {
36
37 /**
38 * Returns a {@code long} value.
39 *
40 * @return a {@code long} value
41 */
42 long getAsLong();
43 }
|