- Type Parameters:
K- the type of keys the predicate operates on.
V- the type of values the predicate operates on.
- All Superinterfaces:
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface Predicate<K,V> extends java.io.SerializableRepresents a map entry predicate. Implementations of this interface are basic building blocks for performing queries on map entries.
Implementations must be thread-safe, since the
apply(java.util.Map.Entry<K, V>)method may be called by multiple threads concurrently.
applyApplies this predicate to the given map entry.
Implementations must be thread-safe, since this method may be called by multiple threads concurrently.
mapEntry- the map entry to apply this predicate to.
trueif the given map entry matches this predicate,