Class BooleanClosureForMapPredicate<K,V>

java.lang.Object
org.codehaus.groovy.runtime.callsite.BooleanClosureForMapPredicate<K,V>
All Implemented Interfaces:
Predicate<Map.Entry<K,V>>

@Deprecated(since="6.0.0", forRemoval=true) public class BooleanClosureForMapPredicate<K,V> extends Object implements Predicate<Map.Entry<K,V>>
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 and records how many parameters it accepts.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    test(Map.Entry<K,V> entry)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Invokes the wrapped closure with the entry's key and value when the closure accepts two arguments, and with the entry itself otherwise.

    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

    • BooleanClosureForMapPredicate

      public BooleanClosureForMapPredicate(Closure wrapped)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Wraps wrapped and records how many parameters it accepts.
      Parameters:
      wrapped - closure evaluated for each map entry
  • Method Details

    • test

      public boolean test(Map.Entry<K,V> entry)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Invokes the wrapped closure with the entry's key and value when the closure accepts two arguments, and with the entry itself otherwise.
      Specified by:
      test in interface Predicate<K>