org.jclouds.util
Class ConcreteFunction<F,T>

java.lang.Object
  extended by org.jclouds.util.ConcreteFunction<F,T>
All Implemented Interfaces:
com.google.common.base.Function<F,T>

public class ConcreteFunction<F,T>
extends Object
implements com.google.common.base.Function<F,T>

For wrapping covariant functions for passing to non-covariant methods

Author:
danikov

Constructor Summary
ConcreteFunction(com.google.common.base.Function<? super F,? extends T> delegate)
           
 
Method Summary
 T apply(F input)
           
static
<F,T> ConcreteFunction<F,T>
wrap(com.google.common.base.Function<? super F,? extends T> delegate)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.google.common.base.Function
equals
 

Constructor Detail

ConcreteFunction

public ConcreteFunction(com.google.common.base.Function<? super F,? extends T> delegate)
Method Detail

wrap

public static <F,T> ConcreteFunction<F,T> wrap(com.google.common.base.Function<? super F,? extends T> delegate)

apply

public T apply(F input)
Specified by:
apply in interface com.google.common.base.Function<F,T>


Copyright © 2009-2013 jclouds. All Rights Reserved.