|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsk.baka.tools.StrUtils
public final class StrUtils
Contains various Strings utilities.
| Method Summary | |
|---|---|
static boolean |
isBlank(String str)
Checks if given string is blank (null or whitespace-only). |
static boolean |
isEmpty(String msg)
Returns true if given string is null or zero-sized. |
static List<String> |
split(String str,
String delimiters)
Splits given string and returns a list of splitted trimmed strings. |
static String |
truncate(String string,
int maxLength,
boolean start)
Truncates given string if its length exceeds maximum length. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static boolean isBlank(String str)
str - the string to check
public static List<String> split(String str,
String delimiters)
str - the strings to split, may be null.delimiters - the delimiters
public static boolean isEmpty(String msg)
msg - the string to check
public static String truncate(String string,
int maxLength,
boolean start)
string - the string to truncatemaxLength - the maximum lengthstart - if true then leading characters are truncated, otherwise trailing characters are truncated
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||