Null-Chain
Emulates Optional Chaining (?.
) for Java.
Example (JavaScript):
Example (NullChain):
If the value is null
in any then
-step, null
is returned.
So you don't have to worry about whether an NPE could be thrown.
Psychopaths can also use the yolo() method, for a shorter syntax, but at what cost...
Last update:
2022-03-15