|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jgoodies.binding.BindingUtils
public final class BindingUtils
Consists exclusively of static methods that provide convenience behavior used by the Binding classes.
Method Summary | |
---|---|
static boolean |
equals(Object o1,
Object o2)
Checks and answers if the two objects are both null or equal. |
static boolean |
isBlank(String str)
Checks and answers if the given string is whitespace, empty ( "" ) or null . |
static boolean |
isEmpty(String str)
Checks and answers if the given string is empty ( "" )
or null . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static boolean equals(Object o1, Object o2)
null
or equal.
#equals(null, null) == true #equals("Hi", "Hi") == true #equals("Hi", null) == false #equals(null, "Hi") == false #equals("Hi", "Ho") == false
o1
- the first object to compareo2
- the second object to compare
true
if and only if
both objects are null
or equalpublic static boolean isBlank(String str)
""
) or null
.
#isBlank(null) == true #isBlank("") == true #isBlank(" ") == true #isBlank("Hi ") == false
str
- the string to check, may be null
true
if the string is whitespace, empty
or null
isEmpty(String)
public static boolean isEmpty(String str)
""
)
or null
.
#isEmpty(null) == true #isEmpty("") == true #isEmpty(" ") == false #isEmpty("Hi ") == false
str
- the string to check, may be null
true
if the string is empty or null
isBlank(String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |