Class 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>, java.util.function.Predicate<T>

    @GwtCompatible
    public class BooleanFunctionDelegate<T>
    extends java.lang.Object
    implements com.google.common.base.Predicate<T>
    Internal wrapper to look like a google.collect predicate
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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, test
      • Methods inherited from interface java.util.function.Predicate

        and, negate, or
    • 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>