protected boolean checkOriginalModelFields(CalendarEventModel originalModel){
  if (mAllDay != originalModel.mAllDay) {
    return false;
  }
  if (mAttendeesList == null) {
    if (originalModel.mAttendeesList != null) {
      return false;
    }
  }
 else   if (!mAttendeesList.equals(originalModel.mAttendeesList)) {
    return false;
  }
  if (mCalendarId != originalModel.mCalendarId) {
    return false;
  }
  if (mCalendarColor != originalModel.mCalendarColor) {
    return false;
  }
  if (mCalendarColorInitialized != originalModel.mCalendarColorInitialized) {
    return false;
  }
  if (mGuestsCanInviteOthers != originalModel.mGuestsCanInviteOthers) {
    return false;
  }
  if (mGuestsCanModify != originalModel.mGuestsCanModify) {
    return false;
  }
  if (mGuestsCanSeeGuests != originalModel.mGuestsCanSeeGuests) {
    return false;
  }
  if (mOrganizerCanRespond != originalModel.mOrganizerCanRespond) {
    return false;
  }
  if (mCalendarAccessLevel != originalModel.mCalendarAccessLevel) {
    return false;
  }
  if (mModelUpdatedWithEventCursor != originalModel.mModelUpdatedWithEventCursor) {
    return false;
  }
  if (mHasAlarm != originalModel.mHasAlarm) {
    return false;
  }
  if (mHasAttendeeData != originalModel.mHasAttendeeData) {
    return false;
  }
  if (mId != originalModel.mId) {
    return false;
  }
  if (mIsOrganizer != originalModel.mIsOrganizer) {
    return false;
  }
  if (mOrganizer == null) {
    if (originalModel.mOrganizer != null) {
      return false;
    }
  }
 else   if (!mOrganizer.equals(originalModel.mOrganizer)) {
    return false;
  }
  if (mOriginalAllDay == null) {
    if (originalModel.mOriginalAllDay != null) {
      return false;
    }
  }
 else   if (!mOriginalAllDay.equals(originalModel.mOriginalAllDay)) {
    return false;
  }
  if (mOriginalTime == null) {
    if (originalModel.mOriginalTime != null) {
      return false;
    }
  }
 else   if (!mOriginalTime.equals(originalModel.mOriginalTime)) {
    return false;
  }
  if (mOwnerAccount == null) {
    if (originalModel.mOwnerAccount != null) {
      return false;
    }
  }
 else   if (!mOwnerAccount.equals(originalModel.mOwnerAccount)) {
    return false;
  }
  if (mReminders == null) {
    if (originalModel.mReminders != null) {
      return false;
    }
  }
 else   if (!mReminders.equals(originalModel.mReminders)) {
    return false;
  }
  if (mSelfAttendeeStatus != originalModel.mSelfAttendeeStatus) {
    return false;
  }
  if (mOwnerAttendeeId != originalModel.mOwnerAttendeeId) {
    return false;
  }
  if (mSyncAccount == null) {
    if (originalModel.mSyncAccount != null) {
      return false;
    }
  }
 else   if (!mSyncAccount.equals(originalModel.mSyncAccount)) {
    return false;
  }
  if (mSyncAccountType == null) {
    if (originalModel.mSyncAccountType != null) {
      return false;
    }
  }
 else   if (!mSyncAccountType.equals(originalModel.mSyncAccountType)) {
    return false;
  }
  if (mSyncId == null) {
    if (originalModel.mSyncId != null) {
      return false;
    }
  }
 else   if (!mSyncId.equals(originalModel.mSyncId)) {
    return false;
  }
  if (mTimezone == null) {
    if (originalModel.mTimezone != null) {
      return false;
    }
  }
 else   if (!mTimezone.equals(originalModel.mTimezone)) {
    return false;
  }
  if (mTimezone2 == null) {
    if (originalModel.mTimezone2 != null) {
      return false;
    }
  }
 else   if (!mTimezone2.equals(originalModel.mTimezone2)) {
    return false;
  }
  if (mAvailability != originalModel.mAvailability) {
    return false;
  }
  if (mUri == null) {
    if (originalModel.mUri != null) {
      return false;
    }
  }
 else   if (!mUri.equals(originalModel.mUri)) {
    return false;
  }
  if (mAccessLevel != originalModel.mAccessLevel) {
    return false;
  }
  if (mEventStatus != originalModel.mEventStatus) {
    return false;
  }
  if (mEventColor != originalModel.mEventColor) {
    return false;
  }
  if (mEventColorInitialized != originalModel.mEventColorInitialized) {
    return false;
  }
  return true;
}

protected boolean checkOriginalModelFields ( CalendarEventModel originalModel ) { if ( mAllDay != originalModel . mAllDay ) { return false ; } if ( mAttendeesList == null ) { if ( originalModel . mAttendeesList != null ) { return false ; } } else if ( ! mAttendeesList . equals ( originalModel . mAttendeesList ) ) { return false ; } if ( mCalendarId != originalModel . mCalendarId ) { return false ; } if ( mCalendarColor != originalModel . mCalendarColor ) { return false ; } if ( mCalendarColorInitialized != originalModel . mCalendarColorInitialized ) { return false ; } if ( mGuestsCanInviteOthers != originalModel . mGuestsCanInviteOthers ) { return false ; } if ( mGuestsCanModify != originalModel . mGuestsCanModify ) { return false ; } if ( mGuestsCanSeeGuests != originalModel . mGuestsCanSeeGuests ) { return false ; } if ( mOrganizerCanRespond != originalModel . mOrganizerCanRespond ) { return false ; } if ( mCalendarAccessLevel != originalModel . mCalendarAccessLevel ) { return false ; } if ( mModelUpdatedWithEventCursor != originalModel . mModelUpdatedWithEventCursor ) { return false ; } if ( mHasAlarm != originalModel . mHasAlarm ) { return false ; } if ( mHasAttendeeData != originalModel . mHasAttendeeData ) { return false ; } if ( mId != originalModel . mId ) { return false ; } if ( mIsOrganizer != originalModel . mIsOrganizer ) { return false ; } if ( mOrganizer == null ) { if ( originalModel . mOrganizer != null ) { return false ; } } else if ( ! mOrganizer . equals ( originalModel . mOrganizer ) ) { return false ; } if ( mOriginalAllDay == null ) { if ( originalModel . mOriginalAllDay != null ) { return false ; } } else if ( ! mOriginalAllDay . equals ( originalModel . mOriginalAllDay ) ) { return false ; } if ( mOriginalTime == null ) { if ( originalModel . mOriginalTime != null ) { return false ; } } else if ( ! mOriginalTime . equals ( originalModel . mOriginalTime ) ) { return false ; } if ( mOwnerAccount == null ) { if ( originalModel . mOwnerAccount != null ) { return false ; } } else if ( ! mOwnerAccount . equals ( originalModel . mOwnerAccount ) ) { return false ; } if ( mReminders == null ) { if ( originalModel . mReminders != null ) { return false ; } } else if ( ! mReminders . equals ( originalModel . mReminders ) ) { return false ; } if ( mSelfAttendeeStatus != originalModel . mSelfAttendeeStatus ) { return false ; } if ( mOwnerAttendeeId != originalModel . mOwnerAttendeeId ) { return false ; } if ( mSyncAccount == null ) { if ( originalModel . mSyncAccount != null ) { return false ; } } else if ( ! mSyncAccount . equals ( originalModel . mSyncAccount ) ) { return false ; } if ( mSyncAccountType == null ) { if ( originalModel . mSyncAccountType != null ) { return false ; } } else if ( ! mSyncAccountType . equals ( originalModel . mSyncAccountType ) ) { return false ; } if ( mSyncId == null ) { if ( originalModel . mSyncId != null ) { return false ; } } else if ( ! mSyncId . equals ( originalModel . mSyncId ) ) { return false ; } if ( mTimezone == null ) { if ( originalModel . mTimezone != null ) { return false ; } } else if ( ! mTimezone . equals ( originalModel . mTimezone ) ) { return false ; } if ( mTimezone2 == null ) { if ( originalModel . mTimezone2 != null ) { return false ; } } else if ( ! mTimezone2 . equals ( originalModel . mTimezone2 ) ) { return false ; } if ( mAvailability != originalModel . mAvailability ) { return false ; } if ( mUri == null ) { if ( originalModel . mUri != null ) { return false ; } } else if ( ! mUri . equals ( originalModel . mUri ) ) { return false ; } if ( mAccessLevel != originalModel . mAccessLevel ) { return false ; } if ( mEventStatus != originalModel . mEventStatus ) { return false ; } if ( mEventColor != originalModel . mEventColor ) { return false ; } if ( mEventColorInitialized != originalModel . mEventColorInitialized ) { return false ; } return true ; }
checks against an original model for changes to an event . this covers all the fields that should remain consistent between an original event model and the new one if nothing in the event was modified . this is also the portion that overlaps with equality between two event models .
