getSubClass<S> abstract method
Gets a specific direct subclass by type.
Type Parameters:
S: The expected subclass type
Returns:
- The subclass if it exists
nullif no matching subclass found
Implementation
Class<S>? getSubClass<S>();