|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ebmwebsourcing.easycommons.lang.StringHelper
public class StringHelper
| Constructor Summary | |
|---|---|
StringHelper()
|
|
| Method Summary | |
|---|---|
static boolean |
equal(java.lang.String a,
java.lang.String b)
Test the equality of the specified strings. test is : ( (a==b==null) || a.equals(b) ) |
static boolean |
isNullOrEmpty(java.lang.String s)
Return true if the String is null, contains only space character or is empty. |
static java.lang.String |
nonNullValue(java.lang.Object obj)
Return an empty String if obj is null, otherwise
return obj.toString(). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StringHelper()
| Method Detail |
|---|
public static boolean isNullOrEmpty(java.lang.String s)
s - a string
public static java.lang.String nonNullValue(java.lang.Object obj)
String if obj is null, otherwise
return obj.toString().
obj -
public static final boolean equal(java.lang.String a,
java.lang.String b)
a - b -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||