3 ms·
In java 1.8 there is a Map.getOrDefault(key, defaultValue) method which can be used to distinguish between null and not-found.
by silvestrov 13y ago
In java 1.8 there is a Map.getOrDefault(key, defaultValue) method which can be used to distinguish between null and not-found.