public static < T > boolean equalsE ( T a , T b ) { if ( a == null && b == null ) { return true ; } if ( a != null && b == null ) { return false ; } if ( a == null ) { return false ; } return a . equals ( b ) ; }
Equals with null checking