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