-
- All Implemented Interfaces:
public final class StringUtilsA collection of useful string-related functions
-
-
Method Summary
Modifier and Type Method Description static Stringformat(String format, Array<Object> args)Safe String.formatstatic StringtoString(Object value)Safe Object.toString()static StringtoString(Map<out Object, out Object> map)Transforms dictionary to string static booleanisNullOrEmpty(String str)Checks is string is null or empty static booleanequal(String str1, String str2)Safely checks if two strings are equal (any argument can be null) static Array<byte>hexToBytes(String hex)Converts a hex String to a byte array. static Stringtable(Array<Array<Object>> rows)static Stringtable(Array<Array<Object>> rows, String title)-
-
Method Detail
-
isNullOrEmpty
static boolean isNullOrEmpty(String str)
Checks is string is null or empty
-
equal
static boolean equal(String str1, String str2)
Safely checks if two strings are equal (any argument can be null)
-
hexToBytes
static Array<byte> hexToBytes(String hex)
Converts a hex String to a byte array.
-
-
-
-