enum has valueOf(string) method to get enum constant and the same type of method present in java.lang.Enum class having name valueOf(enumClas
valueOf(string)
java.lang.Enum
valueOf(enumClas
Enum.valueOf(Class, String) is used to implement the valueOf(String) method generated into each specific enum class.
Enum.valueOf(Class, String)
valueOf(String)