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.