getSubClass<S> abstract method
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>();