title: want compare Java.time.LocalDate & java.time.LocalTime in compareTo()
body: <p>I have a <code>Meeting</code> class that implements <code>Comparable&lt;Meeting&gt;</code>. Overridden <code>compareTo</code> method will compare <code>meetingDate</code> of two <code>Meeting</code> objects first and in case they are equal it will compare their <code>meetingTime</code>. I want to put all my <code>Meeting</code> objects in a <code>ProirtiyQueue&lt;Meeting&gt;</code> so I can retrieve the upcoming meetings as per their <code>meetingDate</code> and <code>meetingTime</code>. Data type used are java.time.LocalDate and java.time.LocalTime respectively. How can I compare <code>meetingDate</code> and <code>meetingTime</code> in my <code>compareTo(Meeting o)</code> method.</p>
  
  <pre><code> public class Meeting implements Comparable&lt;Meeting&gt; {
  
  private String title;
  private String desciption;
  private LocalDate meetingDate;
  private LocalTime meetingTime;
  
  public Meeting(String title, String description, LocalDate meetingDate, LocalTime meetingTime) {
      this.title = title;
      this.desciption = description;
      this.meetingDate = meetingDate;
      this.meetingTime = meetingTime;
  
  }
  
  public String getTittle() {
      return title;
  }
  
  public void setTittle(String title) {
      this.title = title;
  }
  
  public String getDescription() {
      return desciption;
  }
  
  public void setDescription(String description) {
      this.desciption = description;
  }
  
  public LocalDate getMeetingDate() {
      return meetingDate;
  }
  public void setMeetingDate(LocalDate meetingDate) {
      this.meetingDate = meetingDate;
  }
  
  public LocalTime getMeetingTime() {
      return meetingTime;
  }
  
  public void setMeetingTime(LocalTime meetingTime) {
      this.meetingTime = meetingTime;
  }
  
  public int compareTo(Meeting o) {
      // comparison
  }
  
  
  }
  </code></pre>