private boolean equalsNull ( String value1 , String value2 ) { return ( value1 == value2 || value1 == null || ( value1 != null && value1 . equalsIgnoreCase ( value2 ) ) ) ; }
Compares two values . Treats null as equal and is case insensitive