org.eclipse.xtext.xbase.lib.internal
Class FunctionDelegate<P,R>

java.lang.Object
  extended by org.eclipse.xtext.xbase.lib.internal.FunctionDelegate<P,R>
Type Parameters:
P - the type of the arguments that can be passed to this function.
R - the type of the result instances of this function.
All Implemented Interfaces:
com.google.common.base.Function<P,R>

public class FunctionDelegate<P,R>
extends java.lang.Object
implements com.google.common.base.Function<P,R>

Internal wrapper to look like a google.collect function

Author:
Sebastian Zarnekow - Initial contribution and API

Constructor Summary
FunctionDelegate(Functions.Function1<? super P,? extends R> delegate)
          Creates a new FunctionDelegate that wraps the given delegate function.
 
Method Summary
 R apply(P input)
           
 
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

FunctionDelegate

public FunctionDelegate(Functions.Function1<? super P,? extends R> delegate)
Creates a new FunctionDelegate that wraps the given delegate function.

Parameters:
delegate - the delegate function. May not be null.
Method Detail

apply

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