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>

@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
BooleanFunctionDelegate(Functions.Function1<? super T,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,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>


Copyright © 2013. All Rights Reserved.