Package: org.codehaus.groovy.runtime

## [Java] Class BooleanClosureForMapPredicate<K, V>

- org.codehaus.groovy.runtime.BooleanClosureForMapPredicate

- All Implemented Interfaces and Traits:
    Predicate

      public class BooleanClosureForMapPredicate<K, V>
      extends Object
      implements Predicate

  Adapts a Closure to a Predicate over Map.Entry values. If the closure takes two parameters, the key and value are passed separately; otherwise the Map.Entry itself is passed.

  Since:
    6.0.0

- - ### Constructor Summary

    Constructors
    Constructor and description
    `BooleanClosureForMapPredicate(Closure wrapped)`

  - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `public boolean` | `test(Map.Entry<K, V> entry)`

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class Object` | `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### public BooleanClosureForMapPredicate(Closure wrapped)

  - ### Method Detail

    - #### public boolean test(Map.Entry<K, V> entry)