K - key typeV - value typepublic interface Predicate<K,V>
Predicate interface represents a predicate (boolean-valued function) of a KeyValue pair.
 This is a stateless record-by-record operation, i.e, test(Object, Object) is invoked individually for each
 record of a stream.| Modifier and Type | Method and Description | 
|---|---|
| boolean | test(K key,
    V value)Test if the record with the given key and value satisfies the predicate. |