public List < MethodParameter > getParametersOfType ( Class < ? > type ) { Assert . notNull ( type , "Type must not be null!" ) ; return getParameters ( ) . stream ( ) // . filter ( it -> it . getParameterType ( ) . equals ( type ) ) // . collect ( Collectors . toList ( ) ) ; }
Returns all parameters of the given type .