@@ -0,0 +1,789 @@
+package com.google.sps.data;%0A%0Aimport java.util.Comparator;%0Aimport java.lang.Float;%0A%0A/* Class that represent an event result in search. */%0Apublic class EventResult %7B%0A  private String eventId;%0A  private float ranking;%0A%0A  public EventResult(String eventId, float ranking) %7B%0A    this.eventId = eventId;%0A    this.ranking = ranking;%0A  %7D%0A%0A  public String getEventId() %7B%0A    return eventId;%0A  %7D%0A%0A  public float getRanking() %7B%0A    return ranking;%0A  %7D%0A%0A  /** A comparator for sorting event results by their ranking in descending order. */%0A  public static final Comparator%3CEventResult%3E ORDER_BY_RANKING_DESC =%0A      new Comparator%3CEventResult%3E() %7B%0A        @Override%0A        public int compare(EventResult a, EventResult b) %7B%0A          return Float.compare(b.ranking, a.ranking);%0A        %7D%0A      %7D;%0A%7D%0A

Add class for event result.