Modifier and Type | Method and Description |
---|---|
<A extends Appendable> |
appendTo(A appendable,
Map<?,?> map)
Appends the string representation of each entry of
map , using the previously
configured separator and key-value separator, to appendable . |
StringBuilder |
appendTo(StringBuilder builder,
Map<?,?> map)
Appends the string representation of each entry of
map , using the previously
configured separator and key-value separator, to builder . |
String |
join(Map<?,?> map)
Returns a string containing the string representation of each entry of
map , using the
previously configured separator and key-value separator. |
Joiner.MapJoiner |
useForNull(String nullText)
Returns a map joiner with the same behavior as this one, except automatically substituting
nullText for any provided null keys or values. |
public <A extends Appendable> A appendTo(A appendable, Map<?,?> map) throws IOException
map
, using the previously
configured separator and key-value separator, to appendable
.IOException
public StringBuilder appendTo(StringBuilder builder, Map<?,?> map)
map
, using the previously
configured separator and key-value separator, to builder
. Identical to appendTo(Appendable, Map)
, except that it does not throw IOException
.public String join(Map<?,?> map)
map
, using the
previously configured separator and key-value separator.public Joiner.MapJoiner useForNull(String nullText)
nullText
for any provided null keys or values.Copyright © 2010-2012. All Rights Reserved.