3 ms·
> .search()
Why didn't they name the function "filter", like everyone else does?
> .search()
Why didn't they name the function "filter", like everyone else does?
I think because it just returns a single value: https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/ConcurrentHashMap.html https://docs.oracle.com/javase/8/docs/api/java/util/concurre...
Thanks for pointing to the JavaDoc. I actually read it before commenting but got it wrong in my head. "find" would have been better here.
Why didn't they name the function "find", like everyone else does?
Some people prefer the more declarative "where".