Class Utils

    • Constructor Detail

      • Utils

        public Utils()
    • Method Detail

      • isNotNullOrEmpty

        public static boolean isNotNullOrEmpty​(CharSequence seq)
        Tests if the character sequence is not null and not empty.
        Parameters:
        seq - the character sequence to test
        Returns:
        true if the character sequence is not null and not empty
      • isNotNullOrEmpty

        public static boolean isNotNullOrEmpty​(Object[] array)
        Tests if the arrays is not null and not empty.
        Parameters:
        array - the array to test
        Returns:
        true if the array is not null and not empty
      • toString

        public static String toString​(Iterable<?> iterable,
                                      CharSequence delimiter)
        Converts an iterable to a delimited string.
        Parameters:
        iterable - the iterable to convert
        delimiter - the delimiter
        Returns:
        a delimited string of the iterable