public class Utils extends Object
| Constructor | Description |
|---|---|
Utils() |
| Modifier and Type | Method | Description |
|---|---|---|
static String |
calculateHash(String str) |
|
static AbstractMap.SimpleEntry<Long,String> |
getProcessInfo() |
|
static boolean |
isNullOrEmpty(String s) |
|
static Boolean |
parseBooleanOrDefault(String str,
Boolean defaultValue) |
|
static Integer |
parseIntegerOrDefault(String str,
Integer defaultValue) |
|
static Long |
parseLongOrDefault(String str,
Long defaultValue) |
|
static boolean |
timingSafeEqual(byte[] a,
byte[] b) |
|
static int |
versionCompare(String str1,
String str2) |
public static boolean isNullOrEmpty(String s)
public static AbstractMap.SimpleEntry<Long,String> getProcessInfo()
public static Integer parseIntegerOrDefault(String str, Integer defaultValue)
public static Boolean parseBooleanOrDefault(String str, Boolean defaultValue)
public static boolean timingSafeEqual(byte[] a,
byte[] b)
Copyright © 2020. All rights reserved.