|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.elasticsearch.util.base.Joiner.MapJoiner
public static class Joiner.MapJoiner
An object that joins map entries in the same manner as Joiner
joins
iterables and arrays.
Method Summary | ||
---|---|---|
|
appendTo(A appendable,
java.util.Map<?,?> map)
Appends the string representation of each entry of map , using the
previously configured separator and key-value separator, to appendable . |
|
java.lang.StringBuilder |
appendTo(java.lang.StringBuilder builder,
java.util.Map<?,?> map)
Appends the string representation of each entry of map , using the
previously configured separator and key-value separator, to builder . |
|
java.lang.String |
join(java.util.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(java.lang.String nullText)
Returns a map joiner with the same behavior as this one, except automatically substituting nullText for any provided null keys or
values. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public <A extends java.lang.Appendable> A appendTo(A appendable, java.util.Map<?,?> map) throws java.io.IOException
map
, using the
previously configured separator and key-value separator, to appendable
.
java.io.IOException
public java.lang.StringBuilder appendTo(java.lang.StringBuilder builder, java.util.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 java.lang.String join(java.util.Map<?,?> map)
map
, using the previously configured separator and key-value
separator.
public Joiner.MapJoiner useForNull(java.lang.String nullText)
nullText
for any provided null keys or
values.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |