You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Cimballi (JIRA)" <ji...@apache.org> on 2015/05/08 17:08:03 UTC
[jira] [Created] (LANG-1136) Add a method in EnumUtils to
'translate' an enum value
Cimballi created LANG-1136:
------------------------------
Summary: Add a method in EnumUtils to 'translate' an enum value
Key: LANG-1136
URL: https://issues.apache.org/jira/browse/LANG-1136
Project: Commons Lang
Issue Type: Wish
Reporter: Cimballi
Priority: Minor
Add a method in EnumUtils to 'translate' an enum value.
Example :
Enum1
Enum2
Object.enum2
Enum1 getEnum(Enum1.class, Object.enum2);
If enum2 is null, returns 2, else returns the Enum1 with the same name as Object.enum2, throws exception if no such Enum1.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)