APIdia Launch Partner
Top Description Methods
java.util.function

public Interface LongSupplier

Annotations
@FunctionalInterface

Represents a supplier of long-valued results. This is the long-producing primitive specialization of Supplier.

There is no requirement that a distinct result be returned each time the supplier is invoked.

This is a functional interface whose functional method is getAsLong().

Since
1.8
See Also
Supplier

Method Summary

Modifier and TypeMethod and Description
public long

Returns:

a result
getAsLong
()

Gets a result.

Method Detail

getAsLongback to summary
public long getAsLong()

Gets a result.

Returns:long

a result