Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Parameter map to url query
private String mapToQuery(Map<String, String> parameters) {
String query = "";
if (parameters != null && !parameters.isEmpty()){
query = "?" +
.map(entry -> entry.getKey() + "=" + entry.getValue())
return query;

This comment has been minimized.

Copy link
Owner Author

@LenarBad LenarBad commented Apr 8, 2019

More on

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment