2 ms·
compute and computeIfPresent are also pretty damn useful (especially in the "atomically modify a value, then delete it if it meets a condition" kind of scenario
by pdpi 10y ago
compute and computeIfPresent are also pretty damn useful (especially in the "atomically modify a value, then delete it if it meets a condition" kind of scenarios)