public Params addAll ( Param < ? > ... ps ) { List < Param < ? > > paramsToAdd = Arrays . asList ( ps ) ; Param < ? > [ ] paramsAll = Arrays . copyOf ( params , params . length ) ; paramsToAdd . forEach ( p -> paramsAll [ p . id ( ) ] = p ) ; return new Params ( paramsAll ) ; }
Adds all parameters and returns a new parameter collection .