Package io.debezium.util
Class Joiner
- java.lang.Object
-
- io.debezium.util.Joiner
-
@Immutable public final class Joiner extends Object
A utility for joining multiplecharacter sequences
together. One major difference compared toStringJoiner
is that this class ignores null values (rather than appending "null").- Author:
- Randall Hauch
-
-
Field Summary
Fields Modifier and Type Field Description private StringJoiner
joiner
-
Constructor Summary
Constructors Modifier Constructor Description private
Joiner(StringJoiner joiner)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
join(CharSequence firstValue, CharSequence... additionalValues)
String
join(Iterable<?> values)
String
join(Iterable<?> values, CharSequence nextValue, CharSequence... additionalValues)
String
join(Object[] values)
String
join(Iterator<?> values)
static Joiner
on(CharSequence delimiter)
static Joiner
on(CharSequence prefix, CharSequence delimiter)
static Joiner
on(CharSequence prefix, CharSequence delimiter, CharSequence suffix)
-
-
-
Field Detail
-
joiner
private final StringJoiner joiner
-
-
Constructor Detail
-
Joiner
private Joiner(StringJoiner joiner)
-
-
Method Detail
-
on
public static Joiner on(CharSequence delimiter)
-
on
public static Joiner on(CharSequence prefix, CharSequence delimiter)
-
on
public static Joiner on(CharSequence prefix, CharSequence delimiter, CharSequence suffix)
-
join
public String join(CharSequence firstValue, CharSequence... additionalValues)
-
join
public String join(Iterable<?> values, CharSequence nextValue, CharSequence... additionalValues)
-
-