Class Utils
- java.lang.Object
-
- io.streamthoughts.azkarra.api.util.Utils
-
public class Utils extends Object
-
-
Constructor Summary
Constructors Constructor Description Utils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Instant
capped(Instant instant)
Instant.toEpochMilli() could result in an arithmetic overflow/underflow (e.g.static void
closeQuietly(AutoCloseable closeable)
static boolean
contains(char[] array, char target)
static String
formatStackTrace(Throwable t)
static boolean
isNullOrEmpty(String str)
static boolean
isNumber(String s)
static String
pruneSuffix(String s, String suffix)
-
-
-
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()).
-
-