Top Description Fields Constructors Methods
org.eclipse.xtext.xbase.lib.internal

public Class FunctionDelegate<P, R>

extends Object
implements Function<P, R>
Class Inheritance
All Implemented Interfaces
com.google.common.base.Function, java.util.function.Function
Annotations
@GwtCompatible
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.
Imports
org.eclipse.xtext.xbase.lib.Functions, com.google.common.annotations.GwtCompatible, com.google.common.base.Function

Internal wrapper to look like a google.collect function
Author
Sebastian Zarnekow - Initial contribution and API

Field Summary

Modifier and TypeField and Description
private final Functions.Function1<? super P, ? extends R>

Constructor Summary

AccessConstructor and Description
public
FunctionDelegate(Functions.Function1<? super P, ? extends R>
the delegate function. May not be null.
delegate
)

Creates a new FunctionDelegate that wraps the given delegate function.

Method Summary

Modifier and TypeMethod and Description
public R
apply(P input)

Implements com.google.common.base.Function.apply.

Applies this function to the given argument.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

delegateback to summary
private final Functions.Function1<? super P, ? extends R> delegate

Constructor Detail

FunctionDelegateback to summary
public FunctionDelegate(Functions.Function1<? super P, ? extends R> delegate)

Creates a new FunctionDelegate that wraps the given delegate function.

Parameters
delegate:Functions.Function1<? super P, ? extends R>

the delegate function. May not be null.

Method Detail

applyback to summary
public R apply(P input)

Implements com.google.common.base.Function.apply.

Doc from java.util.function.Function.apply.

Applies this function to the given argument.

Annotations
@Override