ytanikin edited a comment on pull request #564:
URL: https://github.com/apache/commons-lang/pull/564#issuecomment-651271832
ObjectUtils.getIfNull(
number,
() -> Support.getMasterNumber(file),
() -> Support.getPredefinedNumber(file),
this::takeFreeNumber,
Support::getUndefinedNumber
);
it is a lazy calculation, don't need to calculate all possible values and
use ObjectUtils.firstNonNull, we have a lot of cases where we use firstNonNull
but for this, we calculate values in advance
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]