getDeclaringClass<D> abstract method
Gets the class that declares this method.
Type Parameters:
D: The expected declaring class type
Returns:
- The Class<D> representing the enum in which this value is defined
Example:
final declaring = value.getDeclaringClass<MyEnum>();
print(declaring.getName()); // "MyEnum"
Implementation
Class<D> getDeclaringClass<D>();