You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Yeldos Tanikin (Jira)" <ji...@apache.org> on 2020/06/15 06:16:00 UTC

[jira] [Comment Edited] (LANG-1571) Allow to pass Supplier varargs to getIfNull

    [ https://issues.apache.org/jira/browse/LANG-1571?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17135285#comment-17135285 ] 

Yeldos Tanikin edited comment on LANG-1571 at 6/15/20, 6:15 AM:
----------------------------------------------------------------

Hi, what do you think about this change, it will be compatible with previous one and allow us to pass a few suppliers and take the first not null result. Should it have a different name like getFirstIfNull?

can I take the task to implement? what should I do to start?

Sorry, I'm new here, maybe I should not create task before discuss with you, tell me what should I do If I'm not correct


was (Author: ytanikin):
Hi, what do you think about this change, it will be compatible with previous one and allow us to pass a few suppliers and take the first not null result. Should it have a different name like getFirstIfNull?

can I take the task to implement? what should I do to start?

Sorry, I'm new here, maybe I should not create task before discuss with you, tell me what should I do If I'm not correct

> Allow to pass Supplier varargs to getIfNull
> -------------------------------------------
>
>                 Key: LANG-1571
>                 URL: https://issues.apache.org/jira/browse/LANG-1571
>             Project: Commons Lang
>          Issue Type: Improvement
>            Reporter: Yeldos Tanikin
>            Priority: Major
>
> change 
> public static <T> T getIfNull(final T object, final Supplier<T> defaultSupplier) 
> to 
> public static <T> T getIfNull(final T object, final Supplier<T>... suppliers)
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)