APIdia Launch Partner
Top Fields Constructors Methods
jdk.jpackage.internal.util

public final Class MemoizingSupplier<T>

extends Object
implements Supplier<T>
Class Inheritance
All Implemented Interfaces
java.util.function.Supplier
Imports
jdk.jpackage.internal.util.function.ExceptionBox, java.util.Objects, java.util.concurrent.ExecutionException, .FutureTask, java.util.function.Supplier

Field Summary

Modifier and TypeField and Description
private final FutureTask<T>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public T
get()

Implements java.util.function.Supplier.get.

Gets a result.

public static <T> Supplier<T>
runOnce(Supplier<T> supplier)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

futureback to summary
private final FutureTask<T> future

Constructor Detail

MemoizingSupplierback to summary
public MemoizingSupplier(Supplier<T> supplier)

Method Detail

getback to summary
public T get()

Implements java.util.function.Supplier.get.

Doc from java.util.function.Supplier.get.

Gets a result.

Annotations
@Override
runOnceback to summary
public static <T> Supplier<T> runOnce(Supplier<T> supplier)