Class BooleanClosurePredicate<T>

java.lang.Object
org.codehaus.groovy.runtime.callsite.BooleanClosurePredicate<T>
All Implemented Interfaces:
Predicate<T>

public class BooleanClosurePredicate<T> extends Object implements Predicate<T>
Helper class for internal use only. This creates a Predicate by calling a Closure and converting the result to a boolean. BooleanReturningMethodInvoker is used for caching.
  • Constructor Details

    • BooleanClosurePredicate

      public BooleanClosurePredicate(Closure wrapped)
  • Method Details

    • test

      public boolean test(T arg)
      Specified by:
      test in interface Predicate<T>