我有一个方法需要接受一个Enum类。这些枚举实现了一个接口(interface)。现在我需要访问像ordinal()、name()等枚举方法和我的接口(interface)方法。我试过的:publicvoidshowEnabledFeatures(ClassenumType,longmask){Listlist=Arrays.asList(enumType.getEnumConstants());list.forEach(item->{//Myinterface'smethod,worksfineitem.getMask();//Enummethoddoesn'twork://item