Uses of Interface
com.google.common.base.Supplier
-
Packages that use Supplier Package Description com.google.common.base Basic utility libraries and interfaces.com.google.common.cache This package contains caching utilities.com.google.common.collect This package contains generic collection interfaces and implementations, and other utilities for working with collections.com.google.common.hash Hash functions and related structures.com.google.common.util.concurrent Concurrency utilities. -
-
Uses of Supplier in com.google.common.base
Classes in com.google.common.base that implement Supplier Modifier and Type Class Description (package private) static classSuppliers.ExpiringMemoizingSupplier<T>(package private) static classSuppliers.MemoizingSupplier<T>(package private) static classSuppliers.NonSerializableMemoizingSupplier<T>private static classSuppliers.SupplierComposition<F,T>private static classSuppliers.SupplierOfInstance<T>private static classSuppliers.ThreadSafeSupplier<T>Fields in com.google.common.base declared as Supplier Modifier and Type Field Description (package private) Supplier<T>Suppliers.ExpiringMemoizingSupplier. delegate(package private) Supplier<T>Suppliers.MemoizingSupplier. delegate(package private) Supplier<T>Suppliers.NonSerializableMemoizingSupplier. delegate(package private) Supplier<T>Suppliers.ThreadSafeSupplier. delegateprivate Supplier<T>Functions.SupplierFunction. supplier(package private) Supplier<F>Suppliers.SupplierComposition. supplierMethods in com.google.common.base that return Supplier Modifier and Type Method Description static <F,T>
Supplier<T>Suppliers. compose(Function<? super F,T> function, Supplier<F> supplier)Returns a new supplier which is the composition of the provided function and supplier.static <T> Supplier<T>Suppliers. memoize(Supplier<T> delegate)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, java.util.concurrent.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. 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 Supplier Modifier and Type Method Description static <T> Function<Supplier<T>,T>Suppliers. 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 Supplier Modifier and Type Method Description java.lang.ObjectSuppliers.SupplierFunctionImpl. apply(Supplier<java.lang.Object> input)static <F,T>
Supplier<T>Suppliers. compose(Function<? super F,T> function, Supplier<F> supplier)Returns a new supplier which is the composition of the provided function and supplier.static <T> Function<java.lang.Object,T>Functions. forSupplier(Supplier<T> supplier)Returns a function that ignores its input and returns the result ofsupplier.get().static <T> Supplier<T>Suppliers. memoize(Supplier<T> delegate)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, java.util.concurrent.TimeUnit unit)Returns a supplier that caches the instance supplied by the delegate and removes the cached value after the specified time has passed.TAbsent. or(Supplier<? extends T> supplier)abstract TOptional. or(Supplier<? extends T> supplier)Returns the contained instance if it is present;supplier.get()otherwise.TPresent. or(Supplier<? extends T> supplier)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 Supplier Constructor Description ExpiringMemoizingSupplier(Supplier<T> delegate, long duration, java.util.concurrent.TimeUnit unit)MemoizingSupplier(Supplier<T> delegate)NonSerializableMemoizingSupplier(Supplier<T> delegate)SupplierComposition(Function<? super F,T> function, Supplier<F> supplier)SupplierFunction(Supplier<T> supplier)ThreadSafeSupplier(Supplier<T> delegate) -
Uses of Supplier in com.google.common.cache
Fields in com.google.common.cache declared as Supplier Modifier and Type Field Description (package private) static Supplier<AbstractCache.StatsCounter>CacheBuilder. CACHE_STATS_COUNTERprivate Supplier<V>CacheLoader.SupplierToCacheLoader. computingSupplier(package private) static Supplier<? extends AbstractCache.StatsCounter>CacheBuilder. NULL_STATS_COUNTER(package private) Supplier<? extends AbstractCache.StatsCounter>CacheBuilder. statsCounterSupplierprivate static Supplier<LongAddable>LongAddables. SUPPLIERMethods in com.google.common.cache that return Supplier Modifier and Type Method Description (package private) Supplier<? extends AbstractCache.StatsCounter>CacheBuilder. getStatsCounterSupplier()Methods in com.google.common.cache with parameters of type Supplier Modifier and Type Method Description static <V> CacheLoader<java.lang.Object,V>CacheLoader. from(Supplier<V> supplier)Returns a cache loader based on an existing supplier instance.Constructors in com.google.common.cache with parameters of type Supplier Constructor Description SupplierToCacheLoader(Supplier<V> computingSupplier) -
Uses of Supplier in com.google.common.collect
Classes in com.google.common.collect that implement Supplier Modifier and Type Class Description private static classHashBasedTable.Factory<C,V>private static classMultimapBuilder.ArrayListSupplier<V>private static classMultimapBuilder.EnumSetSupplier<V extends java.lang.Enum<V>>private static classMultimapBuilder.HashSetSupplier<V>private static classMultimapBuilder.LinkedHashSetSupplier<V>private static classMultimapBuilder.LinkedListSupplierprivate static classMultimapBuilder.TreeSetSupplier<V>private static classTreeBasedTable.Factory<C,V>Fields in com.google.common.collect declared as Supplier Modifier and Type Field Description (package private) Supplier<? extends java.util.List<V>>Multimaps.CustomListMultimap. factory(package private) Supplier<? extends java.util.Collection<V>>Multimaps.CustomMultimap. factory(package private) Supplier<? extends java.util.Set<V>>Multimaps.CustomSetMultimap. factory(package private) Supplier<? extends java.util.SortedSet<V>>Multimaps.CustomSortedSetMultimap. factory(package private) Supplier<? extends java.util.Map<C,V>>StandardTable. factoryMethods in com.google.common.collect that return Supplier Modifier and Type Method Description static <V> Supplier<java.util.List<V>>MultimapBuilder.LinkedListSupplier. instance()Methods in com.google.common.collect with parameters of type Supplier Modifier and Type Method Description static <R,C,V>
Table<R,C,V>Tables. newCustomTable(java.util.Map<R,java.util.Map<C,V>> backingMap, Supplier<? extends java.util.Map<C,V>> factory)Creates a table that uses the specified backing map and factory.static <K,V>
ListMultimap<K,V>Multimaps. newListMultimap(java.util.Map<K,java.util.Collection<V>> map, Supplier<? extends java.util.List<V>> factory)Creates a newListMultimapthat uses the provided map and factory.static <K,V>
Multimap<K,V>Multimaps. newMultimap(java.util.Map<K,java.util.Collection<V>> map, Supplier<? extends java.util.Collection<V>> factory)Creates a newMultimapbacked bymap, whose internal value collections are generated byfactory.static <K,V>
SetMultimap<K,V>Multimaps. newSetMultimap(java.util.Map<K,java.util.Collection<V>> map, Supplier<? extends java.util.Set<V>> factory)Creates a newSetMultimapthat uses the provided map and factory.static <K,V>
SortedSetMultimap<K,V>Multimaps. newSortedSetMultimap(java.util.Map<K,java.util.Collection<V>> map, Supplier<? extends java.util.SortedSet<V>> factory)Creates a newSortedSetMultimapthat uses the provided map and factory.Constructors in com.google.common.collect with parameters of type Supplier Constructor Description CustomListMultimap(java.util.Map<K,java.util.Collection<V>> map, Supplier<? extends java.util.List<V>> factory)CustomMultimap(java.util.Map<K,java.util.Collection<V>> map, Supplier<? extends java.util.Collection<V>> factory)CustomSetMultimap(java.util.Map<K,java.util.Collection<V>> map, Supplier<? extends java.util.Set<V>> factory)CustomSortedSetMultimap(java.util.Map<K,java.util.Collection<V>> map, Supplier<? extends java.util.SortedSet<V>> factory)StandardRowSortedTable(java.util.SortedMap<R,java.util.Map<C,V>> backingMap, Supplier<? extends java.util.Map<C,V>> factory)StandardTable(java.util.Map<R,java.util.Map<C,V>> backingMap, Supplier<? extends java.util.Map<C,V>> factory) -
Uses of Supplier in com.google.common.hash
Subinterfaces of Supplier in com.google.common.hash Modifier and Type Interface Description (package private) interfaceImmutableSupplier<T>Explicitly named subinterface ofSupplierthat can be marked @Immutable.Classes in com.google.common.hash that implement Supplier Modifier and Type Class Description (package private) static classHashing.ChecksumTypeFields in com.google.common.hash declared as Supplier Modifier and Type Field Description private static Supplier<LongAddable>LongAddables. SUPPLIER -
Uses of Supplier in com.google.common.util.concurrent
Classes in com.google.common.util.concurrent that implement Supplier Modifier and Type Class Description private classAbstractIdleService.ThreadNameSupplierFields in com.google.common.util.concurrent declared as Supplier Modifier and Type Field Description private static Supplier<java.util.concurrent.locks.ReadWriteLock>Striped. READ_WRITE_LOCK_SUPPLIER(package private) Supplier<L>Striped.LargeLazyStriped. supplier(package private) Supplier<L>Striped.SmallLazyStriped. supplierprivate Supplier<java.lang.String>AbstractIdleService. threadNameSupplierprivate static Supplier<java.util.concurrent.locks.ReadWriteLock>Striped. WEAK_SAFE_READ_WRITE_LOCK_SUPPLIERMethods in com.google.common.util.concurrent with parameters of type Supplier Modifier and Type Method Description (package private) static <L> Striped<L>Striped. custom(int stripes, Supplier<L> supplier)Creates aStriped<L>with eagerly initialized, strongly referenced locks.private static <L> Striped<L>Striped. lazy(int stripes, Supplier<L> supplier)(package private) static java.util.concurrent.ExecutorMoreExecutors. renamingDecorator(java.util.concurrent.Executor executor, Supplier<java.lang.String> nameSupplier)Creates anExecutorthat renames thethreadsthat its tasks run in.(package private) static java.util.concurrent.ExecutorServiceMoreExecutors. renamingDecorator(java.util.concurrent.ExecutorService service, Supplier<java.lang.String> nameSupplier)Creates anExecutorServicethat renames thethreadsthat its tasks run in.(package private) static java.util.concurrent.ScheduledExecutorServiceMoreExecutors. renamingDecorator(java.util.concurrent.ScheduledExecutorService service, Supplier<java.lang.String> nameSupplier)Creates aScheduledExecutorServicethat renames thethreadsthat its tasks run in.(package private) static java.lang.RunnableCallables. threadRenaming(java.lang.Runnable task, Supplier<java.lang.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> java.util.concurrent.Callable<T>Callables. threadRenaming(java.util.concurrent.Callable<T> callable, Supplier<java.lang.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 Supplier Constructor Description CompactStriped(int stripes, Supplier<L> supplier)LargeLazyStriped(int stripes, Supplier<L> supplier)SmallLazyStriped(int stripes, Supplier<L> supplier)
-