public class Timeslot extends AbstractPersistable
id
Modifier and Type | Method and Description |
---|---|
boolean |
endsBefore(Timeslot other) |
LocalDate |
getDate() |
Integer |
getDurationInMinutes() |
LocalDateTime |
getEndDateTime() |
int |
getOverlapInMinutes(Timeslot other) |
LocalDateTime |
getStartDateTime() |
Set<String> |
getTagSet() |
Set<TalkType> |
getTalkTypeSet() |
boolean |
hasTag(String tag) |
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 |
withTalkTypeSet(Set<TalkType> talkTypeSet) |
compareTo, getId, setId
public LocalDate getDate()
public Integer getDurationInMinutes()
public boolean overlapsTime(Timeslot other)
public int getOverlapInMinutes(Timeslot other)
public boolean startsAfter(Timeslot other)
public boolean endsBefore(Timeslot other)
public boolean hasTag(String tag)
public boolean isOnSameDayAs(Timeslot other)
public boolean pauseExists(Timeslot other, int pauseInMinutes)
public String toString()
toString
in class AbstractPersistable
public LocalDateTime getStartDateTime()
public void setStartDateTime(LocalDateTime startDateTime)
public LocalDateTime getEndDateTime()
public void setEndDateTime(LocalDateTime endDateTime)
public Timeslot withStartDateTime(LocalDateTime startDateTime)
public Timeslot withEndDateTime(LocalDateTime endDateTime)
Copyright © 2006–2019 JBoss by Red Hat. All rights reserved.