Created
December 17, 2018 23:36
-
-
Save phpmaps/88c55c532af4ca3fcc9b74ec36c0a59e to your computer and use it in GitHub Desktop.
bodyBuilder
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public List<NameValuePair> bodyBuilder(Map<String, String> map) { | |
| List<NameValuePair> paramList = new ArrayList<>(map.size()); | |
| for (Map.Entry<String, String> entry : map.entrySet()) { | |
| paramList.add(new BasicNameValuePair(entry.getKey(), entry.getValue())); | |
| } | |
| return paramList; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment