Class Utils


  • public final class Utils
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Utils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean isBlank​(java.lang.String value)
      Is String null, empty, or consisting of only whitespace.
      static boolean isNotBlank​(java.lang.String value)
      Is String valid and has something other than whitespace
      static java.lang.String join​(java.lang.Object[] arr, int start, int end, java.lang.String delim)  
      static java.lang.String join​(java.lang.Object[] arr, java.lang.String delim)  
      static java.lang.String join​(java.util.Collection<?> objs, java.lang.String delim)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Utils

        public Utils()
    • Method Detail

      • join

        public static java.lang.String join​(java.lang.Object[] arr,
                                            java.lang.String delim)
      • join

        public static java.lang.String join​(java.lang.Object[] arr,
                                            int start,
                                            int end,
                                            java.lang.String delim)
      • join

        public static java.lang.String join​(java.util.Collection<?> objs,
                                            java.lang.String delim)
      • isBlank

        public static boolean isBlank​(java.lang.String value)
        Is String null, empty, or consisting of only whitespace.
        Parameters:
        value - the value to test
        Returns:
        true if null, empty, or consisting of only whitespace
      • isNotBlank

        public static boolean isNotBlank​(java.lang.String value)
        Is String valid and has something other than whitespace
        Parameters:
        value - the value to test
        Returns:
        true if String has something other than whitespace