Package de.danielbechler.util
Class Strings
java.lang.Object
de.danielbechler.util.Strings
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanstatic Stringstatic booleanstatic StringJoins all non-null elements of the givenelementsinto one String.static Stringjoin(String delimiter, Collection<?> elements) Same asjoin(String, Object...)but with aCollectioninstead of an Array for the elements.static StringtoSingleLineString(Object object)
-
Method Details
-
hasText
-
isEmpty
-
join
Joins all non-null elements of the givenelementsinto one String.- Parameters:
delimiter- Inserted as separator between consecutive elements.elements- The elements to join.- Returns:
- A long string containing all non-null elements.
-
join
Same asjoin(String, Object...)but with aCollectioninstead of an Array for the elements.- See Also:
-
toSingleLineString
-
indent
-