14 karma · joined Jul 6, 2018 (8y ago) · 4 submissions
comment 4y ago · link · parent
I'm really glad that we didn't move our business over...
comment 7y ago · link · parent
Somewhat surprisingly, the code the author pooh-poohs is actually more performant (although it's better if the test is for the presence of the key rather than the "putIfPresent/computeIfAbsent combination) because the JVM will properly optimize a membership test (in keyset) and the use of a ternary expression makes the action clear.
comment 8y ago · link · parent