public class StringUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
collectionAsString(Collection<String> set,
String delim) |
static String |
concat(String s1,
String... strs) |
static String |
concatObjects(Object o1,
Object... objs) |
static String |
concatObjectsCap(int cap,
Object o1,
Object... objs) |
static String |
formatAccount(long account,
boolean withPrefix) |
static String |
formatAccount(long account,
int minLen) |
static String |
formatText(String text,
int minLen) |
static String |
formatTime(long seconds,
boolean withPrefix) |
static String |
formatTime(long seconds,
int minLen) |
static String |
getVersion(Class clazz) |
static boolean |
isBlank(String str) |
static boolean |
isNotBlank(String str) |
static boolean |
isNumber(String str) |
static boolean |
isNumber(String str,
int radix) |
static char[] |
merge(char[][] parts) |
static boolean |
orEqualsIgnoreCase(String str,
String... tokens) |
static List<String> |
split(String str,
String delim) |
static Set<String> |
splitAsSet(String str,
String delim) |
static boolean |
startsWithIgnoreCase(String str,
String prefix) |
static BigInteger |
toBigInt(String str) |
static BigInteger |
toBigInt(String str,
boolean defaultHex) |
static byte[] |
toUtf8Bytes(String str) |
static String |
toUtf8String(byte[] bytes) |
public static boolean isBlank(String str)
public static boolean isNotBlank(String str)
public static String collectionAsString(Collection<String> set, String delim)
public static boolean isNumber(String str)
public static boolean isNumber(String str, int radix)
public static String formatAccount(long account, boolean withPrefix)
public static String formatAccount(long account, int minLen)
public static String formatTime(long seconds, boolean withPrefix)
public static String formatTime(long seconds, int minLen)
public static char[] merge(char[][] parts)
public static byte[] toUtf8Bytes(String str)
public static String toUtf8String(byte[] bytes)
public static BigInteger toBigInt(String str)
public static BigInteger toBigInt(String str, boolean defaultHex)
Copyright © 2023. All rights reserved.