getSubClass<S> abstract method

Class<S>? getSubClass<S>()

Gets a specific direct subclass by type.

Type Parameters:

  • S: The expected subclass type

Returns:

  • The subclass if it exists
  • null if no matching subclass found

Implementation

Class<S>? getSubClass<S>();