Module org.eclipse.xtext.xbase.lib
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>,Predicate<T>
@GwtCompatible
public class BooleanFunctionDelegate<T>
extends Object
implements com.google.common.base.Predicate<T>
Internal wrapper to look like a google.collect predicate
-
Constructor Summary
ConstructorsConstructorDescriptionBooleanFunctionDelegate(Functions.Function1<? super T, Boolean> delegate) Creates a newBooleanFunctionDelegatethat wraps the given delegate function. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.common.base.Predicate
equals, test
-
Constructor Details
-
BooleanFunctionDelegate
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.
-
-
Method Details
-
apply
- Specified by:
applyin interfacecom.google.common.base.Predicate<T>
-