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

Bruno P. Kinoshita commented on LANG-1352:
------------------------------------------

Hi [~Enigo], thank you for creating the ticket and the pull request.

I'm neutral with this change. I think it could be convenient for some users. 
But in my case I normally use either upper case or lower case, and would keep 
the logic in my code to change the string to lower or upper case before calling 
EnumUtils#getEnum(Class, String).

But if others think this is a good addition to EnumUtils, I'm +0 for merging :-)

In case this gets merged, we may have to implement 
EnumUtils#isValidEnumIgnoreCase(Class, String), as getEnum & isValidEnum behave 
similarly for equal input values, so must getEnumIgnoreCase and 
isValidEnumIgnoreCase.

Cheers
Bruno

> EnumUtils.getEnumIgnoreCase method added
> ----------------------------------------
>
>                 Key: LANG-1352
>                 URL: https://issues.apache.org/jira/browse/LANG-1352
>             Project: Commons Lang
>          Issue Type: Improvement
>          Components: lang.*
>            Reporter: Ruslan Sibgatullin
>            Priority: Minor
>
> EnumUtils.getEnumIgnoreCase method added.
> I truly believe that such handy method must exist in this utility class.
> [This|https://stackoverflow.com/questions/28332924/case-insensitive-matching-of-a-string-to-a-java-enum]
>  SO thread is just a prove of it. And also in the project I work for we need 
> to perform this operation quite often. 



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to