Uses of Interface
com.google.common.base.Supplier
Packages that use Supplier
Package
Description
Basic utility libraries and interfaces.
Discouraged (in favor of Caffeine) caching utilities.
Collection interfaces and implementations, and other utilities for collections.
An API for representing graph (node and edge) data.
Hash functions and related structures.
Concurrency utilities.
-
Uses of Supplier in com.google.common.base
Classes in com.google.common.base that implement SupplierModifier and TypeClassDescription(package private) static class(package private) static class(package private) static classprivate static classprivate static classprivate static classFields in com.google.common.base declared as SupplierModifier and TypeFieldDescriptionSuppliers.ExpiringMemoizingSupplier.delegateSuppliers.MemoizingSupplier.delegateSuppliers.NonSerializableMemoizingSupplier.delegateSuppliers.ThreadSafeSupplier.delegateSuppliers.NonSerializableMemoizingSupplier.SUCCESSFULLY_COMPUTEDFunctions.SupplierFunction.supplierSuppliers.SupplierComposition.supplierMethods in com.google.common.base that return SupplierModifier and TypeMethodDescriptionstatic <F,T> Supplier <T> Returns a new supplier which is the composition of the provided function and supplier.static <T> Supplier<T> Returns a supplier which caches the instance retrieved during the first call toget()and returns that value on subsequent calls toget().static <T> Supplier<T> Suppliers.memoizeWithExpiration(Supplier<T> delegate, long duration, TimeUnit unit) Returns a supplier that caches the instance supplied by the delegate and removes the cached value after the specified time has passed.static <T> Supplier<T> Suppliers.memoizeWithExpiration(Supplier<T> delegate, Duration duration) Returns a supplier that caches the instance supplied by the delegate and removes the cached value after the specified time has passed.static <T> Supplier<T> Suppliers.ofInstance(T instance) Returns a supplier that always suppliesinstance.static <T> Supplier<T> Suppliers.synchronizedSupplier(Supplier<T> delegate) Returns a supplier whoseget()method synchronizes ondelegatebefore calling it, making it thread-safe.Methods in com.google.common.base that return types with arguments of type SupplierModifier and TypeMethodDescriptionSuppliers.supplierFunction()Returns a function that accepts a supplier and returns the result of invokingget()on that supplier.Methods in com.google.common.base with parameters of type SupplierModifier and TypeMethodDescriptionstatic <F,T> Supplier <T> Returns a new supplier which is the composition of the provided function and supplier.static <F,T> Function <F, T> Functions.forSupplier(Supplier<T> supplier) Returns a function that ignores its input and returns the result ofsupplier.get().static <T> Supplier<T> Returns a supplier which caches the instance retrieved during the first call toget()and returns that value on subsequent calls toget().static <T> Supplier<T> Suppliers.memoizeWithExpiration(Supplier<T> delegate, long duration, TimeUnit unit) Returns a supplier that caches the instance supplied by the delegate and removes the cached value after the specified time has passed.static <T> Supplier<T> Suppliers.memoizeWithExpiration(Supplier<T> delegate, Duration duration) Returns a supplier that caches the instance supplied by the delegate and removes the cached value after the specified time has passed.abstract TReturns the contained instance if it is present;supplier.get()otherwise.static <T> Supplier<T> Suppliers.synchronizedSupplier(Supplier<T> delegate) Returns a supplier whoseget()method synchronizes ondelegatebefore calling it, making it thread-safe.Constructors in com.google.common.base with parameters of type SupplierModifierConstructorDescription(package private)ExpiringMemoizingSupplier(Supplier<T> delegate, long durationNanos) (package private)MemoizingSupplier(Supplier<T> delegate) (package private)NonSerializableMemoizingSupplier(Supplier<T> delegate) (package private)privateSupplierFunction(Supplier<T> supplier) (package private)ThreadSafeSupplier(Supplier<T> delegate) -
Uses of Supplier in com.google.common.cache
Fields in com.google.common.cache declared as SupplierModifier and TypeFieldDescription(package private) static final Supplier<AbstractCache.StatsCounter> CacheBuilder.CACHE_STATS_COUNTERCacheLoader.SupplierToCacheLoader.computingSupplier(package private) static final Supplier<? extends AbstractCache.StatsCounter> CacheBuilder.NULL_STATS_COUNTER(package private) Supplier<? extends AbstractCache.StatsCounter> CacheBuilder.statsCounterSupplierprivate static final Supplier<LongAddable> LongAddables.SUPPLIERMethods in com.google.common.cache that return SupplierModifier and TypeMethodDescription(package private) Supplier<? extends AbstractCache.StatsCounter> CacheBuilder.getStatsCounterSupplier()Methods in com.google.common.cache with parameters of type SupplierModifier and TypeMethodDescriptionstatic <V> CacheLoader<Object, V> Returns a cache loader based on an existing supplier instance.Constructors in com.google.common.cache with parameters of type Supplier -
Uses of Supplier in com.google.common.collect
Classes in com.google.common.collect that implement SupplierModifier and TypeClassDescriptionprivate static classprivate static final classprivate static final classMultimapBuilder.EnumSetSupplier<V extends Enum<V>>private static final classprivate static final classprivate static enumprivate static final classprivate static classFields in com.google.common.collect declared as SupplierModifier and TypeFieldDescriptionMultimaps.CustomListMultimap.factory(package private) Supplier<? extends Collection<V>> Multimaps.CustomMultimap.factoryMultimaps.CustomSetMultimap.factoryMultimaps.CustomSortedSetMultimap.factoryStandardTable.factoryMethods in com.google.common.collect that return SupplierMethods in com.google.common.collect with parameters of type SupplierModifier and TypeMethodDescriptionstatic <R,C, V> Table <R, C, V> Tables.newCustomTable(Map<R, Map<C, V>> backingMap, Supplier<? extends Map<C, V>> factory) Creates a table that uses the specified backing map and factory.static <K,V> ListMultimap <K, V> Multimaps.newListMultimap(Map<K, Collection<V>> map, Supplier<? extends List<V>> factory) Creates a newListMultimapthat uses the provided map and factory.static <K,V> Multimap <K, V> Multimaps.newMultimap(Map<K, Collection<V>> map, Supplier<? extends Collection<V>> factory) Creates a newMultimapbacked bymap, whose internal value collections are generated byfactory.static <K,V> SetMultimap <K, V> Multimaps.newSetMultimap(Map<K, Collection<V>> map, Supplier<? extends Set<V>> factory) Creates a newSetMultimapthat uses the provided map and factory.static <K,V> SortedSetMultimap <K, V> Multimaps.newSortedSetMultimap(Map<K, Collection<V>> map, Supplier<? extends SortedSet<V>> factory) Creates a newSortedSetMultimapthat uses the provided map and factory.Constructors in com.google.common.collect with parameters of type SupplierModifierConstructorDescription(package private)CustomListMultimap(Map<K, Collection<V>> map, Supplier<? extends List<V>> factory) (package private)CustomMultimap(Map<K, Collection<V>> map, Supplier<? extends Collection<V>> factory) (package private)CustomSetMultimap(Map<K, Collection<V>> map, Supplier<? extends Set<V>> factory) (package private)CustomSortedSetMultimap(Map<K, Collection<V>> map, Supplier<? extends SortedSet<V>> factory) (package private)(package private) -
Uses of Supplier in com.google.common.graph
Fields in com.google.common.graph declared as SupplierMethods in com.google.common.graph with parameters of type SupplierConstructors in com.google.common.graph with parameters of type Supplier -
Uses of Supplier in com.google.common.hash
Subinterfaces of Supplier in com.google.common.hashModifier and TypeInterfaceDescription(package private) interfaceExplicitly named subinterface ofSupplierthat can be marked @.invalid reference
ImmutableClasses in com.google.common.hash that implement SupplierModifier and TypeClassDescription(package private) static enumprivate static enumFields in com.google.common.hash declared as SupplierModifier and TypeFieldDescriptionprivate static final Supplier<LongAddable> LongAddables.SUPPLIER -
Uses of Supplier in com.google.common.util.concurrent
Classes in com.google.common.util.concurrent that implement SupplierFields in com.google.common.util.concurrent declared as SupplierModifier and TypeFieldDescriptionStriped.LargeLazyStriped.supplierStriped.SmallLazyStriped.supplierAbstractIdleService.threadNameSupplierMethods in com.google.common.util.concurrent with parameters of type SupplierModifier and TypeMethodDescription(package private) static <L> Striped<L> Creates aStriped<L>with eagerly initialized, strongly referenced locks.(package private) static <L> Striped<L> Striped.lazyWeakCustom(int stripes, Supplier<L> supplier) Creates aStriped<L>with lazily initialized, weakly referenced locks.(package private) static ExecutorMoreExecutors.renamingDecorator(Executor executor, Supplier<String> nameSupplier) (package private) static ExecutorServiceMoreExecutors.renamingDecorator(ExecutorService service, Supplier<String> nameSupplier) Creates anExecutorServicethat renames thethreadsthat its tasks run in.(package private) static ScheduledExecutorServiceMoreExecutors.renamingDecorator(ScheduledExecutorService service, Supplier<String> nameSupplier) Creates aScheduledExecutorServicethat renames thethreadsthat its tasks run in.(package private) static RunnableCallables.threadRenaming(Runnable task, Supplier<String> nameSupplier) Wraps the given runnable such that for the duration ofRunnable.run()the thread that is running with have the given name.(package private) static <T> Callable<T> Callables.threadRenaming(Callable<T> callable, Supplier<String> nameSupplier) Wraps the given callable such that for the duration ofCallable.call()the thread that is running will have the given name.Constructors in com.google.common.util.concurrent with parameters of type SupplierModifierConstructorDescriptionprivateCompactStriped(int stripes, Supplier<L> supplier) (package private)LargeLazyStriped(int stripes, Supplier<L> supplier) (package private)SmallLazyStriped(int stripes, Supplier<L> supplier)