Package dev.nm.misc
Class StringUtils
- java.lang.Object
-
- dev.nm.misc.StringUtils
-
public final class StringUtils extends Object
Utility methods for string manipulation.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
isNullOrEmpty(String s)
Checks if a string is either null or empty.static String
paste(Collection<String> collection, String delimiter)
ConcatenatesString
s into oneString
.
-
-
-
Method Detail
-
isNullOrEmpty
public static boolean isNullOrEmpty(String s)
Checks if a string is either null or empty.- Parameters:
s
- a string- Returns:
true
if and only if the string is either null or empty
-
paste
public static String paste(Collection<String> collection, String delimiter)
ConcatenatesString
s into oneString
.- Parameters:
collection
- the collection of strings to be concatenateddelimiter
- the separation symbol for the strings- Returns:
- the concatenated string
-
-