K
- the type of keys the predicate operates on.V
- the type of values the predicate operates on.@FunctionalInterface public interface Predicate<K,V> extends Serializable
Implementations must be thread-safe, since the apply(java.util.Map.Entry<K, V>)
method may be called by multiple threads concurrently.
Modifier and Type | Method and Description |
---|---|
boolean |
apply(Map.Entry<K,V> mapEntry)
Applies this predicate to the given map entry.
|
boolean apply(Map.Entry<K,V> mapEntry)
Implementations must be thread-safe, since this method may be called by multiple threads concurrently.
mapEntry
- the map entry to apply this predicate to.true
if the given map entry matches this predicate,
false
otherwise.Copyright © 2020 Hazelcast, Inc.. All rights reserved.