JavaEnum类的文档说明了以下关于getDeclaringClass的内容:ReturnstheClassobjectcorrespondingtothisenumconstant'senumtype.Twoenumconstantse1ande2areofthesameenumtypeifandonlyife1.getDeclaringClass()==e2.getDeclaringClass().(ThevaluereturnedbythismethodmaydifferfromtheonereturnedbytheObject.getClass()methodforenumc