| java.lang.Object com.jgoodies.binding.BindingUtils
BindingUtils | final public class BindingUtils (Code) | | Consists exclusively of static methods that provide
convenience behavior used by the Binding classes.
author: Karsten Lentzsch version: $Revision: 1.5 $ |
Method Summary | |
public static boolean | equals(Object o1, Object o2) Checks and answers if the two objects are
both null or equal. | public static boolean | isBlank(String str) Checks and answers if the given string is whitespace,
empty ("" ) or null . | public static boolean | isEmpty(String str) |
equals | public static boolean equals(Object o1, Object o2)(Code) | | Checks and answers if the two objects are
both null or equal.
#equals(null, null) == true
#equals("Hi", "Hi") == true
#equals("Hi", null) == false
#equals(null, "Hi") == false
#equals("Hi", "Ho") == false
Parameters: o1 - the first object to compare Parameters: o2 - the second object to compare boolean true if and only ifboth objects are null or equal |
isBlank | public static boolean isBlank(String str)(Code) | | Checks and answers if the given string is whitespace,
empty ("" ) or null .
#isBlank(null) == true
#isBlank("") == true
#isBlank(" ") == true
#isBlank("Hi ") == false
Parameters: str - the string to check, may be null true if the string is whitespace, emptyor null See Also: BindingUtils.isEmpty(String) |
isEmpty | public static boolean isEmpty(String str)(Code) | | Checks and answers if the given string is empty ("" )
or null .
#isEmpty(null) == true
#isEmpty("") == true
#isEmpty(" ") == false
#isEmpty("Hi ") == false
Parameters: str - the string to check, may be null true if the string is empty or null See Also: BindingUtils.isBlank(String) |
|
|