walkthroughs/week-5-tdd/project/src/main/java/com/google/sps/FindMeetingQuery.java
public Boolean areAttendeesIncluded(Collection<Event> events, MeetingRequest request){
      HashSet<String> bookedEventAttendees = new HashSet<>();
      for (Event event: events) {
          bookedEventAttendees.addAll(event.getAttendees());
      }

      bookedEventAttendees.retainAll(request.getAttendees());
      return !bookedEventAttendees.isEmpty();
  }
/**
   * This method checks if the requested mandatory attendees
   * are included in the events given.
   * @param events It contains a collection of event objects
   * @param request It contains a MeetingRequest object.
   * @return Boolean -- states if the required attendees are included or not.
   */
This method checks if the requested mandatory attendees
are included in the events given.
@param events It contains a collection of event objects
@param request It contains a MeetingRequest object.
@return Boolean -- states if the required attendees are included or not.
This method checks if the requested mandatory attendees are included in the events given . @param events It contains a collection of event objects @param request It contains a MeetingRequest object . @return Boolean -- states if the required attendees are included or not .
public Boolean areAttendeesIncluded(Collection<Event> events, MeetingRequest request){
      HashSet<String> bookedEventAttendees = new HashSet<>();
      for (Event event: events) {
          bookedEventAttendees.addAll(event.getAttendees());
      }
      bookedEventAttendees.retainAll(request.getAttendees());
      return !bookedEventAttendees.isEmpty();
  }
public Boolean areAttendeesIncluded ( Collection < Event > events , MeetingRequest request ) { HashSet < String > bookedEventAttendees = new HashSet < > ( ) ; for ( Event event : events ) { bookedEventAttendees . addAll ( event . getAttendees ( ) ) ; } bookedEventAttendees . retainAll ( request . getAttendees ( ) ) ; return ! bookedEventAttendees . isEmpty ( ) ; }
This method checks if the requested mandatory attendees
 are included in the events given.
This method checks if the requested mandatory attendees are included in the events given .