Class Timeslot
- java.lang.Object
-
- org.optaplanner.examples.common.domain.AbstractPersistable
-
- org.optaplanner.examples.conferencescheduling.domain.Timeslot
-
public class Timeslot extends AbstractPersistable
-
-
Field Summary
-
Fields inherited from class org.optaplanner.examples.common.domain.AbstractPersistable
id
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanendsBefore(Timeslot other)LocalDategetDate()IntegergetDurationInMinutes()LocalDateTimegetEndDateTime()intgetOverlapInMinutes(Timeslot other)LocalDateTimegetStartDateTime()Set<String>getTagSet()Set<TalkType>getTalkTypeSet()booleanhasTag(String tag)booleanisOnSameDayAs(Timeslot other)booleanoverlapsTime(Timeslot other)booleanpauseExists(Timeslot other, int pauseInMinutes)voidsetEndDateTime(LocalDateTime endDateTime)voidsetStartDateTime(LocalDateTime startDateTime)voidsetTagSet(Set<String> tagSet)voidsetTalkTypeSet(Set<TalkType> talkTypeSet)booleanstartsAfter(Timeslot other)StringtoString()TimeslotwithEndDateTime(LocalDateTime endDateTime)TimeslotwithStartDateTime(LocalDateTime startDateTime)TimeslotwithTagSet(Set<String> tagSet)TimeslotwithTalkTypeSet(Set<TalkType> talkTypeSet)-
Methods inherited from class org.optaplanner.examples.common.domain.AbstractPersistable
getId, setId
-
-
-
-
Method Detail
-
getDate
public LocalDate getDate()
-
getDurationInMinutes
public Integer 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)
-
hasTag
public boolean hasTag(String tag)
-
isOnSameDayAs
public boolean isOnSameDayAs(Timeslot other)
-
pauseExists
public boolean pauseExists(Timeslot other, int pauseInMinutes)
-
toString
public String toString()
- Overrides:
toStringin classAbstractPersistable
-
getStartDateTime
public LocalDateTime getStartDateTime()
-
setStartDateTime
public void setStartDateTime(LocalDateTime startDateTime)
-
getEndDateTime
public LocalDateTime getEndDateTime()
-
setEndDateTime
public void setEndDateTime(LocalDateTime endDateTime)
-
withStartDateTime
public Timeslot withStartDateTime(LocalDateTime startDateTime)
-
withEndDateTime
public Timeslot withEndDateTime(LocalDateTime endDateTime)
-
-