getDeclaredInterface<I> abstract method

Class<I>? getDeclaredInterface<I>()

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>();