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 boolean
endsBefore(Timeslot other)
LocalDate
getDate()
int
getDurationInMinutes()
LocalDateTime
getEndDateTime()
int
getOverlapInMinutes(Timeslot other)
LocalDateTime
getStartDateTime()
Set<String>
getTagSet()
Set<TalkType>
getTalkTypeSet()
boolean
isOnSameDayAs(Timeslot other)
boolean
overlapsTime(Timeslot other)
boolean
pauseExists(Timeslot other, int pauseInMinutes)
void
setEndDateTime(LocalDateTime endDateTime)
void
setStartDateTime(LocalDateTime startDateTime)
void
setTagSet(Set<String> tagSet)
void
setTalkTypeSet(Set<TalkType> talkTypeSet)
boolean
startsAfter(Timeslot other)
String
toString()
Timeslot
withEndDateTime(LocalDateTime endDateTime)
Timeslot
withStartDateTime(LocalDateTime startDateTime)
Timeslot
withTagSet(Set<String> tagSet)
Timeslot
withTalkTypeSet(Set<TalkType> talkTypeSet)
-
Methods inherited from class org.optaplanner.examples.common.domain.AbstractPersistable
getId, setId
-
-
-
-
Method Detail
-
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 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)
-
-