org.jclouds.util
Class Suppliers2

java.lang.Object
  extended by org.jclouds.util.Suppliers2

public class Suppliers2
extends Object

Author:
Adrian Cole

Constructor Summary
Suppliers2()
           
 
Method Summary
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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Suppliers2

public Suppliers2()
Method Detail

getLastValueInMap

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)

ofInstanceFunction

public static <X> com.google.common.base.Function<X,com.google.common.base.Supplier<X>> ofInstanceFunction()

newOutputStreamSupplier

public static com.google.common.io.OutputSupplier<OutputStream> newOutputStreamSupplier(OutputStream output)
converts an OutputStream to an OutputSupplier


memoizeWithExpirationOnAbsoluteInterval

public static <T> com.google.common.base.Supplier<T> memoizeWithExpirationOnAbsoluteInterval(com.google.common.base.Supplier<T> delegate,
                                                                                             long duration,
                                                                                             TimeUnit unit)
See Supplier.memoizeWithExpiration. Difference between this impl and v11.0 is that we fix http://code.google.com/p/guava-libraries/issues/detail?id=857.



Copyright © 2009-2012 jclouds. All Rights Reserved.