# LongSupplier

public interface **LongSupplier** Represents a supplier of `long`-valued results. This is the
`long`-producing primitive specialization of `https://developers.google.com/j2objc/javadoc/jre/reference/java/util/function/Supplier.html`.

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

This is a [functional interface](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/function/package-summary)
whose functional method is `https://developers.google.com/j2objc/javadoc/jre/reference/java/util/function/LongSupplier.html#getAsLong()`.

##### See Also

- `https://developers.google.com/j2objc/javadoc/jre/reference/java/util/function/Supplier.html`

### Public Method Summary

|---|---|
| abstract long | [getAsLong](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/function/LongSupplier.html#getAsLong())() Gets a result. |

## Public Methods

#### public abstract long
**getAsLong**
()

Gets a result.

##### Returns

- a result