|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.fckeditor.tool.Utils
public class Utils
Some static helper methods.
Constructor Summary | |
---|---|
Utils()
|
Method Summary | |
---|---|
static java.util.Set<java.lang.String> |
getSet(java.lang.String stringList)
Just a wrapper to getSet(String, String) for using '|' as
delimiter. |
static java.util.Set<java.lang.String> |
getSet(java.lang.String stringList,
java.lang.String delimiter)
Constructs a set of uppercased strings from a delimiter-separated string. |
static boolean |
isBlank(java.lang.String str)
Checks if a String is whitespace, empty or null. |
static boolean |
isEmpty(java.lang.String str)
Checks if a string is null or empty. |
static boolean |
isNotBlank(java.lang.String str)
Just a wrapper to isBlank(String) . |
static boolean |
isNotEmpty(java.lang.String str)
Just a wrapper to isEmpty(String) . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Utils()
Method Detail |
---|
public static java.util.Set<java.lang.String> getSet(java.lang.String stringList, java.lang.String delimiter)
stringList
- delimiter
- The delimiter.
java.lang.IllegalArgumentException
- if 'delimiter' is empty.public static java.util.Set<java.lang.String> getSet(java.lang.String stringList)
getSet(String, String)
for using '|' as
delimiter.
public static boolean isEmpty(java.lang.String str)
null
or empty.
str
- to check
true
if the string is null
or
empty.public static boolean isNotEmpty(java.lang.String str)
isEmpty(String)
.
str
- to ckeck
true
if the String is not empty or not
null
.public static boolean isBlank(java.lang.String str)
str
- to check
true
if the string is null
, empty
or contains whitespace only.public static boolean isNotBlank(java.lang.String str)
isBlank(String)
.
str
- to check
true
if the string is not null
,
not empty or does not contain whitespace only.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |