|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Supplier | |
---|---|
com.google.common.base | Basic utility libraries and interfaces. |
com.google.common.collect | This package contains generic collection interfaces and implementations, and other utilities for working with collections. |
Uses of Supplier in com.google.common.base |
---|
Methods in com.google.common.base that return Supplier | ||
---|---|---|
static
|
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
|
Suppliers.memoize(Supplier<T> delegate)
Returns a supplier which caches the instance retrieved during the first call to get() and returns that value on subsequent calls to
get() . |
|
static
|
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
|
Suppliers.ofInstance(T instance)
Returns a supplier that always supplies instance . |
|
static
|
Suppliers.synchronizedSupplier(Supplier<T> delegate)
Returns a supplier whose get() method synchronizes on
delegate before calling it, making it thread-safe. |
Methods in com.google.common.base that return types with arguments of type Supplier | ||
---|---|---|
static
|
Suppliers.supplierFunction()
Returns a function that accepts a supplier and returns the result of invoking get() on that supplier. |
Methods in com.google.common.base with parameters of type Supplier | ||
---|---|---|
static
|
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
|
Suppliers.memoize(Supplier<T> delegate)
Returns a supplier which caches the instance retrieved during the first call to get() and returns that value on subsequent calls to
get() . |
|
static
|
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
|
Suppliers.synchronizedSupplier(Supplier<T> delegate)
Returns a supplier whose get() method synchronizes on
delegate before calling it, making it thread-safe. |
Uses of Supplier in com.google.common.collect |
---|
Methods in com.google.common.collect with parameters of type Supplier | ||
---|---|---|
static
|
Multimaps.newListMultimap(Map<K,Collection<V>> map,
Supplier<? extends List<V>> factory)
Creates a new ListMultimap that uses the provided map and factory. |
|
static
|
Multimaps.newMultimap(Map<K,Collection<V>> map,
Supplier<? extends Collection<V>> factory)
Creates a new Multimap that uses the provided map and factory. |
|
static
|
Multimaps.newSetMultimap(Map<K,Collection<V>> map,
Supplier<? extends Set<V>> factory)
Creates a new SetMultimap that uses the provided map and factory. |
|
static
|
Multimaps.newSortedSetMultimap(Map<K,Collection<V>> map,
Supplier<? extends SortedSet<V>> factory)
Creates a new SortedSetMultimap that uses the provided map and
factory. |
|
protected Set<Map.Entry<K,V>> |
ForwardingMap.standardEntrySet(Supplier<Iterator<Map.Entry<K,V>>> entryIteratorSupplier)
A sensible definition of ForwardingMap.entrySet() in terms of the specified Supplier , which is used to generate iterators over the entry set, and in
terms of the following methods: ForwardingMap.clear() , ForwardingMap.containsKey(java.lang.Object) ,
ForwardingMap.get(java.lang.Object) , ForwardingMap.isEmpty() , ForwardingMap.remove(java.lang.Object) , and ForwardingMap.size() . |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |