Class EnglishEnums
java.lang.Object
org.apache.logging.log4j.util.EnglishEnums
-
Method Summary
-
Method Details
-
valueOf
Returns 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, returnsdefaultValue.- Returns:
- an enum value or null if
nameis null.
-
valueOf
Returns 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:
enumType- The Class of the enum.name- The enum name, case-insensitive. If null, returnsdefaultValue.defaultValue- the enum value to return ifnameis null.- Returns:
- an enum value or
defaultValueifnameis null.
-