documentation for Enum.ordinal() java.lang.Enum Enum Enum class Enum class Enum Enum compareTo java.lang.Enum ordinal() method name Enum.ordinal() Enum.ordinal() java.lang.Enum java.lang.Enum name name name Enum.valueOf name compareTo Java API documentation compareTo name http://docs.oracle.com/javase/7/docs/api/java/lang/Enum.html Enum (Java Platform SE 7 ) ordinal Enum http://docs.oracle.com/javase/7/docs/api/java/lang/Enum.html Enum Enum