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>, Function<P,R>

@GwtCompatible public class FunctionDelegate<P,R> extends 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 Details

    • 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 Details

    • apply

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