|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.logging.log4j.util.EnglishEnums
public class EnglishEnums
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.
| Constructor Summary | |
|---|---|
EnglishEnums()
|
|
| Method Summary | ||
|---|---|---|
static
|
valueOf(Class<T> enumType,
String name)
Returns the Result for the given string. |
|
static
|
valueOf(Class<T> enumType,
String name,
T defaultValue)
Returns an enum value for the given string. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EnglishEnums()
| Method Detail |
|---|
public static <T extends Enum<T>> T valueOf(Class<T> enumType,
String name)
The name is converted internally to upper case with the ENGLISH locale to
avoid problems on the Turkish locale. Do not use with Turkish enum values.
name - The enum name, case-insensitive. If null, returns defaultValue
name is null
public static <T extends Enum<T>> T valueOf(Class<T> enumType,
String name,
T defaultValue)
The name is converted internally to upper case with the ENGLISH locale to
avoid problems on the Turkish locale. Do not use with Turkish enum values.
name - The enum name, case-insensitive. If null, returns defaultValuedefaultValue - the enum value to return if name is null
defaultValue if name is null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||