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 class
private static class
private static class
private static class
Fields in com.google.common.base declared as SupplierModifier and TypeFieldDescriptionSuppliers.ExpiringMemoizingSupplier.delegate
Suppliers.MemoizingSupplier.delegate
Suppliers.NonSerializableMemoizingSupplier.delegate
Suppliers.ThreadSafeSupplier.delegate
Suppliers.NonSerializableMemoizingSupplier.SUCCESSFULLY_COMPUTED
Functions.SupplierFunction.supplier
Suppliers.SupplierComposition.supplier
Methods 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 ondelegate
before 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 T
Returns 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 ondelegate
before 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)
private
SupplierFunction
(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_COUNTER
CacheLoader.SupplierToCacheLoader.computingSupplier
(package private) static final Supplier
<? extends AbstractCache.StatsCounter> CacheBuilder.NULL_STATS_COUNTER
(package private) Supplier
<? extends AbstractCache.StatsCounter> CacheBuilder.statsCounterSupplier
private static final Supplier
<LongAddable> LongAddables.SUPPLIER
Methods 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 class
private static final class
private static final class
MultimapBuilder.EnumSetSupplier<V extends Enum<V>>
private static final class
private static final class
private static enum
private static final class
private static class
Fields in com.google.common.collect declared as SupplierModifier and TypeFieldDescriptionMultimaps.CustomListMultimap.factory
(package private) Supplier
<? extends Collection<V>> Multimaps.CustomMultimap.factory
Multimaps.CustomSetMultimap.factory
Multimaps.CustomSortedSetMultimap.factory
StandardTable.factory
Methods 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 newListMultimap
that 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 newMultimap
backed 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 newSetMultimap
that 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 newSortedSetMultimap
that 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) interface
Explicitly named subinterface ofSupplier
that can be marked @invalid reference
Immutable
Classes in com.google.common.hash that implement SupplierModifier and TypeClassDescription(package private) static enum
private static enum
Fields 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.supplier
Striped.SmallLazyStriped.supplier
AbstractIdleService.threadNameSupplier
Methods 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 Executor
MoreExecutors.renamingDecorator
(Executor executor, Supplier<String> nameSupplier) (package private) static ExecutorService
MoreExecutors.renamingDecorator
(ExecutorService service, Supplier<String> nameSupplier) Creates anExecutorService
that renames thethreads
that its tasks run in.(package private) static ScheduledExecutorService
MoreExecutors.renamingDecorator
(ScheduledExecutorService service, Supplier<String> nameSupplier) Creates aScheduledExecutorService
that renames thethreads
that its tasks run in.(package private) static Runnable
Callables.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 SupplierModifierConstructorDescriptionprivate
CompactStriped
(int stripes, Supplier<L> supplier) (package private)
LargeLazyStriped
(int stripes, Supplier<L> supplier) (package private)
SmallLazyStriped
(int stripes, Supplier<L> supplier)