commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bruno P. Kinoshita (JIRA)" <>
Subject [jira] [Commented] (LANG-1352) EnumUtils.getEnumIgnoreCase method added
Date Thu, 14 Sep 2017 23:32:00 GMT


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.


> EnumUtils.getEnumIgnoreCase method added
> ----------------------------------------
>                 Key: LANG-1352
>                 URL:
>             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|]
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

View raw message