sendet: Monday, June 15, 2020 8:23:07 AM
> An: dev@commons.apache.org
> Betreff: Allow to pass varargs to ObjectUtils.getIfNull
>
> Hi,
> I have a suggestion to a little bit improve ObjectUtils.getIfNull, can we
> allow to pass Supplier varargs instead of Supplier, sometimes it
http://bernd.eckenfels.net
Von: Yeldos Tanikin
Gesendet: Monday, June 15, 2020 8:23:07 AM
An: dev@commons.apache.org
Betreff: Allow to pass varargs to ObjectUtils.getIfNull
Hi,
I have a suggestion to a little bit improve ObjectUtils.getIfNull, can we
allow to pass Supplier va
for what you want, you can simply use
getFirstNonNull(final Supplier... suppliers)
and then
defaultIfNull(final T object, final T defaultValue)
Yeldos Tanikin 于2020年6月15日周一 下午6:20写道:
> Hi,
> I have a suggestion to a little bit improve ObjectUtils.getIfNull, can we
> allow to pass Supplier varar
Hi,
I have a suggestion to a little bit improve ObjectUtils.getIfNull, can we
allow to pass Supplier varargs instead of Supplier, sometimes it is
very helpful, as well it will not break compatibility with the current
version.
As far as I understand I should write to you before creating a task, if