[
https://issues.apache.org/jira/browse/LANG-1732?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17843252#comment-17843252
]
Jongjin Bae commented on LANG-1732:
-----------------------------------
Thank you for your feedback.
I agree this functionality can be worthless because there are some alternatives
to convert Integer to boolean.
But I think commons-lang need to provide convenient functionality. this methods
can skip intermediate steps.
For this reason, I added this functionality like BooleanUtils.toBoolean(String).
If you still think it is not a good idea, I will close my Pull Request.
Thank you :)
> Add a function to convert a Integer object to boolean value
> -----------------------------------------------------------
>
> Key: LANG-1732
> URL: https://issues.apache.org/jira/browse/LANG-1732
> Project: Commons Lang
> Issue Type: New Feature
> Reporter: Jongjin Bae
> Priority: Major
>
> I need a function to convert a Integer object to boolean value.
> If the Integer object is null, the function returns boolean value it received
> as an argument.
> How about supporting this function in org.apache.commons.lang3.BooleanUtils
> class?
> I will implement this function, if it looks good.
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)