public class Suppliers2 extends Object
Constructor and Description |
---|
Suppliers2() |
Modifier and Type | Method and Description |
---|---|
static <K,V> com.google.common.base.Supplier<V> |
getLastValueInMap(com.google.common.base.Supplier<Map<K,com.google.common.base.Supplier<V>>> input) |
static <T> com.google.common.base.Supplier<T> |
memoizeWithExpirationOnAbsoluteInterval(com.google.common.base.Supplier<T> delegate,
long duration,
TimeUnit unit)
See Supplier.memoizeWithExpiration.
|
static com.google.common.io.OutputSupplier<OutputStream> |
newOutputStreamSupplier(OutputStream output)
converts an
OutputStream to an OutputSupplier |
static <X> com.google.common.base.Function<X,com.google.common.base.Supplier<X>> |
ofInstanceFunction() |
public static <K,V> com.google.common.base.Supplier<V> getLastValueInMap(com.google.common.base.Supplier<Map<K,com.google.common.base.Supplier<V>>> input)
public static <X> com.google.common.base.Function<X,com.google.common.base.Supplier<X>> ofInstanceFunction()
public static com.google.common.io.OutputSupplier<OutputStream> newOutputStreamSupplier(OutputStream output)
OutputStream
to an OutputSupplier
public static <T> com.google.common.base.Supplier<T> memoizeWithExpirationOnAbsoluteInterval(com.google.common.base.Supplier<T> delegate, long duration, TimeUnit unit)
Copyright © 2009-2012 jclouds. All Rights Reserved.