Class BooleanFunctionDelegate<T>
- java.lang.Object
-
- org.eclipse.xtext.xbase.lib.internal.BooleanFunctionDelegate<T>
-
- Type Parameters:
T- the type of the objects that can be used by this predicate.
- All Implemented Interfaces:
com.google.common.base.Predicate<T>,java.util.function.Predicate<T>
@GwtCompatible public class BooleanFunctionDelegate<T> extends java.lang.Object implements com.google.common.base.Predicate<T>Internal wrapper to look like a google.collect predicate
-
-
Constructor Summary
Constructors Constructor Description BooleanFunctionDelegate(Functions.Function1<? super T,java.lang.Boolean> delegate)Creates a newBooleanFunctionDelegatethat wraps the given delegate function.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanapply(T input)
-
-
-
Constructor Detail
-
BooleanFunctionDelegate
public BooleanFunctionDelegate(Functions.Function1<? super T,java.lang.Boolean> delegate)
Creates a newBooleanFunctionDelegatethat wraps the given delegate function. This implementation will throw aNullPointerExceptionif the delegate'simplementationreturnsnullfor a given object.- Parameters:
delegate- the delegate function. May not benull.
-
-