I have TreeMap which I need to convert to URI-like string and then back to Map. I need to set custom delimiters.
TreeMap
Is there any tool (Gu
According to David Tulig you could do it in guava via
String string = Joiner.on("|").withKeyValueSeparator("_").join(map);
The opposite is also available via
Map map = Splitter.on("|").withKeyValueSeparator("_").split(string);