public class Timeslot extends AbstractPersistable
id| Modifier and Type | Method and Description |
|---|---|
boolean |
endsBefore(Timeslot other) |
LocalDate |
getDate() |
long |
getDurationInMinutes() |
LocalDateTime |
getEndDateTime() |
LocalDateTime |
getStartDateTime() |
Set<String> |
getTagSet() |
Set<TalkType> |
getTalkTypeSet() |
boolean |
hasTag(String tag) |
boolean |
isOnSameDayAs(Timeslot other) |
boolean |
overlaps(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, setIdpublic LocalDate getDate()
public long getDurationInMinutes()
public boolean overlaps(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 AbstractPersistablepublic 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–2018 JBoss by Red Hat. All rights reserved.