Re: Allow to pass varargs to ObjectUtils.getIfNull

2020-06-15 Thread Gary Gregory
The best path forward is to provide a PR on GitHub so we can all see what this concretely looks like. Gary On Mon, Jun 15, 2020, 07:01 Bernd Eckenfels wrote: > Sounds like a good idea, I am not sure on what would be a compatible > signature, > > Maybe an additional (Supplier, Supplier...)? > >

Re: Allow to pass varargs to ObjectUtils.getIfNull

2020-06-15 Thread Bernd Eckenfels
Sounds like a good idea, I am not sure on what would be a compatible signature, Maybe an additional (Supplier, Supplier...)? It's fine to open a pullrequest or task for simple enhancements like that, especially if you have working code (with tests) already. Gruss Bernd -- http://bernd.eckenfels

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