public int compareTo ( E o ) { if ( o . getClass ( ) != getClass ( ) ) { throw new ClassCastException ( ) ; } return ordinal - TypesafeEnum . class . cast ( o ) . ordinal ; }
Compares with the specified object by ordinal .