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
ConstructorDescriptionBooleanFunctionDelegate
(Functions.Function1<? super T, Boolean> delegate) Creates a newBooleanFunctionDelegate
that wraps the given delegate function. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.google.common.base.Predicate
equals, test
-
Constructor Details
-
BooleanFunctionDelegate
Creates a newBooleanFunctionDelegate
that wraps the given delegate function. This implementation will throw aNullPointerException
if the delegate'simplementation
returnsnull
for a given object.- Parameters:
delegate
- the delegate function. May not benull
.
-
-
Method Details
-
apply
- Specified by:
apply
in interfacecom.google.common.base.Predicate<T>
-