content: package com.alexstyl.specialdates.search;
  
  import com.alexstyl.specialdates.Optional;
  import com.alexstyl.specialdates.contact.Contact;
  import com.alexstyl.specialdates.date.ContactEvent;
  import com.alexstyl.specialdates.date.Date;
  
  import static com.alexstyl.specialdates.events.peopleevents.StandardEventType.ANNIVERSARY;
  import static com.alexstyl.specialdates.events.peopleevents.StandardEventType.BIRTHDAY;
  import static com.alexstyl.specialdates.events.peopleevents.StandardEventType.NAMEDAY;
  
  final class ContactEventTestBuilder {
  
      private static final Optional<Long> NO_DEVICE_EVENT_ID = Optional.Companion.absent();
  
      private final Contact contact;
  
      ContactEventTestBuilder(Contact contact) {
          this.contact = contact;
      }
  
      ContactEvent buildBirthday(Date date) {
          return new ContactEvent(NO_DEVICE_EVENT_ID, BIRTHDAY, date, contact);
      }
  
      ContactEvent buildNameday(Date date) {
          return new ContactEvent(NO_DEVICE_EVENT_ID, NAMEDAY, date, contact);
      }
  
      ContactEvent buildAnniversary(Date date) {
          return new ContactEvent(NO_DEVICE_EVENT_ID, ANNIVERSARY, date, contact);
      }
  }
  