Class Utils


  • public class Utils
    extends Object
    • Constructor Detail

      • Utils

        public Utils()
    • Method Detail

      • closeQuietly

        public static void closeQuietly​(AutoCloseable closeable)
      • isNullOrEmpty

        public static boolean isNullOrEmpty​(String str)
      • contains

        public static boolean contains​(char[] array,
                                       char target)
      • isNumber

        public static boolean isNumber​(String s)
      • capped

        public static Instant capped​(Instant instant)
        Instant.toEpochMilli() could result in an arithmetic overflow/underflow (e.g. Instant.MAX.toEpochMilli() or Instant.MIN.toEpochMilli()).
      • formatStackTrace

        public static String formatStackTrace​(Throwable t)