Reading the official API documentation about Enum, you have to go to the description of method valueOf(Class<T> enumType, String name)
and read:
Note that for a particular enum type T, the implicitly declared public static T valueOf(String) method on that enum may be used instead of this method to map from a name to the corresponding enum constant. All the constants of an enum type can be obtained by calling the implicit public static T[] values() method of that typevalue.
Ok, values()
and valueOf(name)
are not methods of Enum
class, but for what Eclipse tells me, the only attributes and methods of Enum
are class
, super
, this
and valueOf(Class<T> enumType, String name)
. So also the other documented methods are specific to the enum type. Knowing that, why not documenting also values()
and valueOf(name)
separately? If I didn't read about valueOf()
and values()
on SO, I never know about them.