7 ms·
Could be, though this is an artifact of a simplified example that I didn't mean to be relevant here. For clarity, let's rewrite it as: Foo value = someCondi
by TeMPOraL 9y ago
Could be, though this is an artifact of a simplified example that I didn't mean to be relevant here.
For clarity, let's rewrite it as:
Foo value = someCondition()
? map1.computeIfAbsent("key", defaultValueProvider)
: list1.get(42);