public abstract class AbstractDutyHours extends Object implements IDutyHours
IDutyHours.DutyHoursFlavour
Constructor and Description |
---|
AbstractDutyHours(GregorianCalendar hoursBegin,
GregorianCalendar hoursEnd)
Deprecated.
|
AbstractDutyHours(Instant hoursBegin,
Instant hoursEnd)
Deprecated.
|
AbstractDutyHours(Instant hoursBegin,
Instant hoursEnd,
ZoneId zoneId)
Instantiates a new abstract duty hours.
|
AbstractDutyHours(LocalDateTime hoursBegin,
LocalDateTime hoursEnd)
Deprecated.
|
AbstractDutyHours(long hoursBeginMillis,
long hoursEndMillis)
Deprecated.
|
AbstractDutyHours(long hoursBeginMillis,
long hoursEndMillis,
ZoneId zoneId) |
AbstractDutyHours(TimeWindow window) |
AbstractDutyHours(ZonedDateTime hoursBegin,
ZonedDateTime hoursEnd) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(IDutyHours o) |
TimeWindow |
getTimeWindow()
Gets the time window.
|
boolean |
isPrefferedHour()
Checks if it is a preffered hour.
|
void |
setIsPrefferedHour(boolean isPreffered)
Sets the checks if is preffered hour.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
copy, getFlavour
public AbstractDutyHours(TimeWindow window)
public AbstractDutyHours(Instant hoursBegin, Instant hoursEnd, ZoneId zoneId)
hoursBegin
- the hours beginhoursEnd
- the hours endzoneId
- the zone idpublic AbstractDutyHours(ZonedDateTime hoursBegin, ZonedDateTime hoursEnd)
public AbstractDutyHours(long hoursBeginMillis, long hoursEndMillis, ZoneId zoneId)
@Deprecated public AbstractDutyHours(GregorianCalendar hoursBegin, GregorianCalendar hoursEnd)
@Deprecated public AbstractDutyHours(LocalDateTime hoursBegin, LocalDateTime hoursEnd)
@Deprecated public AbstractDutyHours(Instant hoursBegin, Instant hoursEnd)
@Deprecated public AbstractDutyHours(long hoursBeginMillis, long hoursEndMillis)
public TimeWindow getTimeWindow()
IDutyHours
getTimeWindow
in interface IDutyHours
public int compareTo(IDutyHours o)
compareTo
in interface Comparable<IDutyHours>
public void setIsPrefferedHour(boolean isPreffered)
IDutyHours
setIsPrefferedHour
in interface IDutyHours
isPreffered
- the new checks if is prefferd hourpublic boolean isPrefferedHour()
IDutyHours
isPrefferedHour
in interface IDutyHours
Copyright © 2017–2023 DNA Evolutions GmbH. All rights reserved.