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

java.lang.Object
  extended by org.eclipse.xtext.xbase.lib.IterableExtensions.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>
Enclosing class:
IterableExtensions

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

Internal wrapper to look like a google.collect function


Constructor Summary
protected IterableExtensions.FunctionDelegate(Functions.Function1<? super P,? extends R> delegate)
          Creates a new IterableExtensions.BooleanFunctionDelegate 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

IterableExtensions.FunctionDelegate

protected IterableExtensions.FunctionDelegate(Functions.Function1<? super P,? extends R> delegate)
Creates a new IterableExtensions.BooleanFunctionDelegate 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>