Re: Allow to pass varargs to ObjectUtils.getIfNull

2020-06-15 Thread Gary Gregory
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

Re: Allow to pass varargs to ObjectUtils.getIfNull

2020-06-15 Thread Bernd Eckenfels
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

Re: Allow to pass varargs to ObjectUtils.getIfNull

2020-06-15 Thread Xeno Amess
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

Allow to pass varargs to ObjectUtils.getIfNull

2020-06-15 Thread Yeldos Tanikin
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