public static Map < String , QueryParameter > toMap ( List < QueryParameter > parameters ) { Map < String , QueryParameter > map = new HashMap < String , QueryParameter > ( ) ; for ( QueryParameter qp : parameters ) { map . put ( qp . getName ( ) , qp ) ; } return map ; }
Convert a list of QueryParameter object to a map where the key is the parameter name and the value is the parameter