public static boolean isSameEvent(CalendarEventModel model,CalendarEventModel originalModel){
  if (originalModel == null) {
    return true;
  }
  if (model.mCalendarId != originalModel.mCalendarId) {
    return false;
  }
  if (model.mId != originalModel.mId) {
    return false;
  }
  return true;
}

public static boolean isSameEvent ( CalendarEventModel model , CalendarEventModel originalModel ) { if ( originalModel == null ) { return true ; } if ( model . mCalendarId != originalModel . mCalendarId ) { return false ; } if ( model . mId != originalModel . mId ) { return false ; } return true ; }
compares two models to ensure that they refer to the same event . this is a safety check to make sure an updated event model refers to the same event as the original model . if the original model is null then this is a new event or we ' re forcing an overwrite so we return true in that case . the important identifiers are the calendar id and the event id .
