final void typeCheck(E e){
  Class<?> eClass=e.getClass();
  if (eClass != elementType && eClass.getSuperclass() != elementType)   throw new ClassCastException(eClass + " != " + elementType);
}

final void typeCheck ( E e ) { Class < ? > eClass = e . getClass ( ) ; if ( eClass != elementType && eClass . getSuperclass ( ) != elementType ) throw new ClassCastException ( eClass + " != " + elementType ) ; }
throws an exception if e is not of the correct type for this enum set .
