Since this is an exciting lambda, indeed, a new instance Predicatewill return all the time for every call, but these instances will have the same ConcurrentHashMapand Function.
Btw a System.out.println distinctByKey - , .
Djdk.internal.lambda.dumpProxyClasses=/Your/Path/Here
, < > Predicate class. - CHM Function, private static factory method, . , , Predicate, ConcurrentHashMap Function.