getInterface<I> abstract method

Class<I>? getInterface<I>()

Gets a specific implemented interface.

Type Parameters:

  • I: The exact interface type to retrieve

Returns:

  • The interface if implemented
  • null if not found

Implementation

Class<I>? getInterface<I>();