Package org.apache.logging.log4j.util
Class EnglishEnums
java.lang.Object
org.apache.logging.log4j.util.EnglishEnums
Consider this class private.
 
Helps convert English Strings to English Enum values.
Enum name arguments are converted internally to upper case with the ENGLISH locale to avoid problems on the Turkish locale. Do not use with Turkish enum values.
- 
Method Summary
- 
Method Details- 
valueOfReturns the Result for the given string.The nameis converted internally to upper case with the ENGLISH locale to avoid problems on the Turkish locale. Do not use with Turkish enum values.- Type Parameters:
- T- The type of the enum.
- Parameters:
- enumType- The Class of the enum.
- name- The enum name, case-insensitive. If null, returns- defaultValue.
- Returns:
- an enum value or null if nameis null.
 
- 
valueOfReturns an enum value for the given string.The nameis converted internally to upper case with the ENGLISH locale to avoid problems on the Turkish locale. Do not use with Turkish enum values.- Type Parameters:
- T- The type of the enum.
- Parameters:
- name- The enum name, case-insensitive. If null, returns- defaultValue.
- enumType- The Class of the enum.
- defaultValue- the enum value to return if- nameis null.
- Returns:
- an enum value or defaultValueifnameis null.
 
 
-