public static boolean isEqual(Object s1, Object s2) {
    return s1 == s2 || (s1 != null) && s1.equals(s2);
  }
public static boolean isEqual(Object s1, Object s2) {
    return s1 == s2 || (s1 != null) && s1.equals(s2);
  }
public static boolean isEqual ( Object s1 , Object s2 ) { return s1 == s2 || ( s1 != null ) && s1 . equals ( s2 ) ; }
A convenience function to check if two objects are equal.

@param s1
The first object
@param s2
The second object
@return true if Equal.
A convenience function to check if two objects are equal .