Package dev.nm.misc

Class StringUtils


  • public final class StringUtils
    extends Object
    Utility methods for string manipulation.
    • 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)
        Concatenates Strings into one String.
        Parameters:
        collection - the collection of strings to be concatenated
        delimiter - the separation symbol for the strings
        Returns:
        the concatenated string