getOrDefault
Executes a ThrowableGetter and returns its result, or a default value if it throws an exception.
Return
The result of getter.get() if successful, otherwise default.
Parameters
default
The default value to return if getter throws an exception.
getter
The ThrowableGetter to execute.
Type Parameters
T
The type of value to return.