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
<F,T> com.google.common.base.Supplier<T>
compose(com.google.common.base.Function<? super F,T> function, com.google.common.base.Supplier<F> supplier)
           
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 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


compose

public static <F,T> com.google.common.base.Supplier<T> compose(com.google.common.base.Function<? super F,T> function,
                                                               com.google.common.base.Supplier<F> supplier)


Copyright © 2009-2012 jclouds. All Rights Reserved.