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

java.lang.Object
  extended by org.eclipse.xtext.xbase.lib.IterableExtensions.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>
Enclosing class:
IterableExtensions

protected static class IterableExtensions.BooleanFunctionDelegate<T>
extends java.lang.Object
implements com.google.common.base.Predicate<T>

Internal wrapper to look like a google.collect predicate


Constructor Summary
protected IterableExtensions.BooleanFunctionDelegate(Functions.Function1<? super T,java.lang.Boolean> delegate)
          Creates a new IterableExtensions.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

IterableExtensions.BooleanFunctionDelegate

protected IterableExtensions.BooleanFunctionDelegate(Functions.Function1<? super T,java.lang.Boolean> delegate)
Creates a new IterableExtensions.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>