Java java.util StringJoiner fields, constructors, methods, implement or subclass

Example usage for Java java.util StringJoiner fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.util StringJoiner.

The text is from its open source code.

Constructor

StringJoiner(CharSequence delimiter, CharSequence prefix, CharSequence suffix)
Constructs a StringJoiner with no characters in it using copies of the supplied prefix , delimiter and suffix .
StringJoiner(CharSequence delimiter)
Constructs a StringJoiner with no characters in it, with no prefix or suffix , and a copy of the supplied delimiter .

Method

StringJoineradd(CharSequence newElement)
Adds a copy of the given CharSequence value as the next element of the StringJoiner value.
StringJoinersetEmptyValue(CharSequence emptyValue)
Sets the sequence of characters to be used when determining the string representation of this StringJoiner and no elements have been added yet, that is, when it is empty.
StringtoString()
Returns the current value, consisting of the prefix , the values added so far separated by the delimiter , and the suffix , unless no elements have been added in which case, the prefix + suffix or the emptyValue characters are returned.