public class SingleProvider<T> extends Object implements Provider<T>
Supplier
SingleProvider(Callable<T> callable)
SingleProvider(Provider<T> provider)
SingleProvider(Supplier<T> supplier)
SingleProvider(T instance)
T
call()
protected T
newInstance(Supplier<T> provider)
String
toString()
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
asLoader, asLoader, asSingle, asThread, asThread, get, of, of, of, toLoader, toLoader, toSingle, toSingle, toThread, toThread, wrap
public SingleProvider(T instance)
public SingleProvider(Provider<T> provider)
public SingleProvider(Supplier<T> supplier)
public SingleProvider(Callable<T> callable)
public T call() throws Exception
Provider
call
Callable<T>
Provider<T>
Exception
protected T newInstance(Supplier<T> provider)
public String toString()
toString
Object
Copyright © 2022. All rights reserved.