public < T extends TypeDefinition > List < T > getTypes ( Class < T > targetClass ) { return types . values ( ) . stream ( ) . filter ( targetClass :: isInstance ) . map ( targetClass :: cast ) . collect ( Collectors . toList ( ) ) ; }
Returns a list of types in the registry of that specified class