Package com.dna.jopt.member.unit.hours
Class AbstractDutyHours
java.lang.Object
com.dna.jopt.member.unit.hours.AbstractDutyHours
- All Implemented Interfaces:
IDutyHours,Serializable,Comparable<IDutyHours>
- Direct Known Subclasses:
OpeningHours,WorkingHours
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.dna.jopt.member.unit.hours.IDutyHours
IDutyHours.DutyHoursFlavour -
Constructor Summary
ConstructorsConstructorDescriptionAbstractDutyHours(long hoursBeginMillis, long hoursEndMillis) Deprecated.AbstractDutyHours(long hoursBeginMillis, long hoursEndMillis, ZoneId zoneId) AbstractDutyHours(TimeWindow window) 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(ZonedDateTime hoursBegin, ZonedDateTime hoursEnd) AbstractDutyHours(GregorianCalendar hoursBegin, GregorianCalendar hoursEnd) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionintGets the time window.booleanChecks if it is a preffered hour.voidsetIsPrefferedHour(boolean isPreffered) Sets the checks if is preffered hour.toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.dna.jopt.member.unit.hours.IDutyHours
copy, getFlavour
-
Constructor Details
-
AbstractDutyHours
-
AbstractDutyHours
Instantiates a new abstract duty hours.- Parameters:
hoursBegin- the hours beginhoursEnd- the hours endzoneId- the zone id
-
AbstractDutyHours
-
AbstractDutyHours
-
AbstractDutyHours
Deprecated. -
AbstractDutyHours
Deprecated. -
AbstractDutyHours
Deprecated. -
AbstractDutyHours
Deprecated.
-
-
Method Details
-
getTimeWindow
Description copied from interface:IDutyHoursGets the time window.- Specified by:
getTimeWindowin interfaceIDutyHours- Returns:
- the time window
-
compareTo
- Specified by:
compareToin interfaceComparable<IDutyHours>
-
toString
-
setIsPrefferedHour
public void setIsPrefferedHour(boolean isPreffered) Description copied from interface:IDutyHoursSets the checks if is preffered hour.- Specified by:
setIsPrefferedHourin interfaceIDutyHours- Parameters:
isPreffered- the new checks if is prefferd hour
-
isPrefferedHour
public boolean isPrefferedHour()Description copied from interface:IDutyHoursChecks if it is a preffered hour.- Specified by:
isPrefferedHourin interfaceIDutyHours- Returns:
- true, if it is a preffered hour
-