Package org.assertj.core.util
Class Strings.StringsToJoin
java.lang.Object
org.assertj.core.util.Strings.StringsToJoin
- Enclosing class:
Strings
Knows how to join
String
s using a given delimiter.- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
strings
TheString
s to join.
-
-
Constructor Details
-
StringsToJoin
StringsToJoin(String... strings) Creates a new
.Strings.StringsToJoin
- Parameters:
strings
- theString
s to join.
-
-
Method Details
-
with
Specifies the delimiter to use to joinString
s.- Parameters:
delimiter
- the delimiter to use.- Returns:
- the
String
s joined using the given delimiter.
-
with
Specifies the delimiter to use to joinString
s and the escape String to wrap strings with.- Parameters:
delimiter
- the delimiter to use.escapeString
- the String wrapper to use.- Returns:
- the
String
s joined using the given delimiter.
-