java.lang.Object
org.optaplanner.examples.common.domain.AbstractPersistable
org.optaplanner.examples.conferencescheduling.domain.Timeslot

public class Timeslot extends AbstractPersistable
  • Constructor Details

    • Timeslot

      public Timeslot()
    • Timeslot

      public Timeslot(long id)
  • Method Details

    • getDate

      public LocalDate getDate()
    • getDurationInMinutes

      public int getDurationInMinutes()
    • overlapsTime

      public boolean overlapsTime(Timeslot other)
    • getOverlapInMinutes

      public int getOverlapInMinutes(Timeslot other)
    • startsAfter

      public boolean startsAfter(Timeslot other)
    • endsBefore

      public boolean endsBefore(Timeslot other)
    • isOnSameDayAs

      public boolean isOnSameDayAs(Timeslot other)
    • pauseExists

      public boolean pauseExists(Timeslot other, int pauseInMinutes)
    • toString

      public String toString()
      Overrides:
      toString in class AbstractPersistable
    • getStartDateTime

      public LocalDateTime getStartDateTime()
    • setStartDateTime

      public void setStartDateTime(LocalDateTime startDateTime)
    • getEndDateTime

      public LocalDateTime getEndDateTime()
    • setEndDateTime

      public void setEndDateTime(LocalDateTime endDateTime)
    • getTalkTypeSet

      public Set<TalkType> getTalkTypeSet()
    • setTalkTypeSet

      public void setTalkTypeSet(Set<TalkType> talkTypeSet)
    • getTagSet

      public Set<String> getTagSet()
    • setTagSet

      public void setTagSet(Set<String> tagSet)
    • withStartDateTime

      public Timeslot withStartDateTime(LocalDateTime startDateTime)
    • withEndDateTime

      public Timeslot withEndDateTime(LocalDateTime endDateTime)
    • withTalkTypeSet

      public Timeslot withTalkTypeSet(Set<TalkType> talkTypeSet)
    • withTagSet

      public Timeslot withTagSet(Set<String> tagSet)