Class BooleanClosurePredicate<T>

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

@Deprecated(since="6.0.0", forRemoval=true) public class BooleanClosurePredicate<T> extends Object implements Predicate<T>
Deprecated, for removal: This API element is subject to removal in a future version.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
    Wraps wrapped so test(T) invokes its call method through a cached boolean invoker.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    test(T arg)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Invokes the wrapped closure with arg and returns the boolean result.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface java.util.function.Predicate

    and, negate, or
  • Constructor Details

    • BooleanClosurePredicate

      public BooleanClosurePredicate(Closure wrapped)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Wraps wrapped so test(T) invokes its call method through a cached boolean invoker.
      Parameters:
      wrapped - closure evaluated as a predicate
  • Method Details

    • test

      public boolean test(T arg)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Invokes the wrapped closure with arg and returns the boolean result.
      Specified by:
      test in interface Predicate<T>