core/src/main/java/com/orientechnologies/orient/core/record/impl/ODocumentHelper.java
@SuppressWarnings("unchecked")
  public static boolean hasSameContentOf(final ODocument iCurrent, final ODatabaseDocumentInternal iMyDb, final ODocument iOther,
      final ODatabaseDocumentInternal iOtherDb, RIDMapper ridMapper) {
    return hasSameContentOf(iCurrent, iMyDb, iOther, iOtherDb, ridMapper, true);
  }
@SuppressWarnings("unchecked")
  public static boolean hasSameContentOf(final ODocument iCurrent, final ODatabaseDocumentInternal iMyDb, final ODocument iOther,
      final ODatabaseDocumentInternal iOtherDb, RIDMapper ridMapper) {
    return hasSameContentOf(iCurrent, iMyDb, iOther, iOtherDb, ridMapper, true);
  }
@ SuppressWarnings ( "unchecked" ) public static boolean hasSameContentOf ( final ODocument iCurrent , final ODatabaseDocumentInternal iMyDb , final ODocument iOther , final ODatabaseDocumentInternal iOtherDb , RIDMapper ridMapper ) { return hasSameContentOf ( iCurrent , iMyDb , iOther , iOtherDb , ridMapper , true ) ; }
Makes a deep comparison field by field to check if the passed ODocument instance is identical as identity and content to the
current one. Instead equals() just checks if the RID are the same.

@param iOther ODocument instance

@return true if the two document are identical, otherwise false

@see #equals(Object)
Makes a deep comparison field by field to check if the passed ODocument instance is identical as identity and content to the current one . Instead equals () just checks if the RID are the same .