getDeclaredInterface<I> abstract method
Gets a specific declared interface (non-transitive).
Type Parameters:
I
: The exact interface type to retrieve
Returns:
- The interface if directly declared
null
if not found or only inherited
Implementation
Class<I>? getDeclaredInterface<I>();