code: public static <T> boolean equal(T a, T b) {
          return a != null ? a.equals(b) : b == null;
      }
docs: Null enabled equals().
  
  @param a the first object
  @param b the second object
  @return true if both are null or both are equal