public static List<NameValuePair>
    buildNameValuePareList(Map<String, String> keyValueMap) {
        return keyValueMap.entrySet().stream()
                .map(entry -> new BasicNameValuePair(entry.getKey(),
                        entry.getValue()))
                .collect(toList());
    }
public static List < NameValuePair > buildNameValuePareList ( Map < String , String > keyValueMap ) { return keyValueMap . entrySet ( ) . stream ( ) . map ( entry -> new BasicNameValuePair ( entry . getKey ( ) , entry . getValue ( ) ) ) . collect ( toList ( ) ) ; }
Build name value pare list list.

@param keyValueMap the key value map
@return the list