APIdia Launch Partner
Top Description Methods
java.util.function

public Interface Supplier<T>

Known Direct Subinterfaces
java.util.concurrent.StructuredTaskScope.Subtask, java.util.stream.TerminalSink, java.lang.LazyConstant, java.util.ServiceLoader.Provider
Known Direct Implementers
java.util.stream.Gatherers.Value, jdk.internal.loader.AbstractClassLoaderValue.Memoizer
Annotations
@FunctionalInterface
Type Parameters
<T>
the type of results supplied by this supplier

Represents a supplier of results.

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

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

Since
1.8

Method Summary

Modifier and TypeMethod and Description
public T

Returns:

a result
get
()

Gets a result.

Method Detail

getback to summary
public T get()

Gets a result.

Returns:T

a result