public static class

Joiner.MapJoiner

extends Object
java.lang.Object
   ↳ com.google.gdata.util.common.base.Joiner.MapJoiner

Class Overview

An object that joins map entries in the same manner as Joiner joins iterables and arrays.

Summary

Fields
private Joiner joiner
private String keyValueSeparator
Public Methods
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.
<A extends Appendable> A 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.
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.
[Expand]
Inherited Methods
From class java.lang.Object

Fields

private Joiner joiner

private String keyValueSeparator

Public Methods

public 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. Identical to appendTo(Appendable, Map), except that it does not throw IOException.

Parameters
builder
map

public A 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.

Parameters
appendable
map
Throws
IOException

public 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.

Parameters
map

public 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.

Parameters
nullText