|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.servicemix.jbi.deployer.utils.StringUtils
public class StringUtils
| Constructor Summary | |
|---|---|
StringUtils()
|
|
| Method Summary | |
|---|---|
static boolean |
hasLength(java.lang.CharSequence str)
Check that the given CharSequence is neither null nor of length 0. |
static boolean |
hasLength(java.lang.String str)
Check that the given String is neither null nor of length 0. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StringUtils()
| Method Detail |
|---|
public static boolean hasLength(java.lang.CharSequence str)
null nor of length 0.
Note: Will return true for a CharSequence that purely consists of whitespace.
StringUtils.hasLength(null) = false
StringUtils.hasLength("") = false
StringUtils.hasLength(" ") = true
StringUtils.hasLength("Hello") = true
str - the CharSequence to check (may be null)
true if the CharSequence is not null and has length#hasText(String)public static boolean hasLength(java.lang.String str)
null nor of length 0.
Note: Will return true for a String that purely consists of whitespace.
str - the String to check (may be null)
true if the String is not null and has lengthhasLength(CharSequence)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||