org.eclipse.xtext.xbase.lib.internal
Class BooleanFunctionDelegate<T>

java.lang.Object
  extended by 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>

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
BooleanFunctionDelegate(Functions.Function1<? super T,java.lang.Boolean> delegate)
          Creates a new BooleanFunctionDelegate that wraps the given delegate function.
 
Method Summary
 boolean apply(T input)
           
 
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
 

Constructor Detail

BooleanFunctionDelegate

public BooleanFunctionDelegate(Functions.Function1<? super T,java.lang.Boolean> delegate)
Creates a new BooleanFunctionDelegate that wraps the given delegate function. This implementation will throw a NullPointerException if the delegate's implementation returns null for a given object.

Parameters:
delegate - the delegate function. May not be null.
Method Detail

apply

public boolean apply(T input)
Specified by:
apply in interface com.google.common.base.Predicate<T>