Class FunctionDelegate<P,R>
- java.lang.Object
-
- 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>
,java.util.function.Function<P,R>
@GwtCompatible 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
-
-
Constructor Summary
Constructors Constructor Description FunctionDelegate(Functions.Function1<? super P,? extends R> delegate)
Creates a newFunctionDelegate
that wraps the given delegate function.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description R
apply(P input)
-
-
-
Constructor Detail
-
FunctionDelegate
public FunctionDelegate(Functions.Function1<? super P,? extends R> delegate)
Creates a newFunctionDelegate
that wraps the given delegate function.- Parameters:
delegate
- the delegate function. May not benull
.
-
-