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
ConstructorDescriptionAbstractDutyHours
(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 TypeMethodDescriptionint
Gets the time window.boolean
Checks if it is a preffered hour.void
setIsPrefferedHour
(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, wait
Methods 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:IDutyHours
Gets the time window.- Specified by:
getTimeWindow
in interfaceIDutyHours
- Returns:
- the time window
-
compareTo
- Specified by:
compareTo
in interfaceComparable<IDutyHours>
-
toString
-
setIsPrefferedHour
public void setIsPrefferedHour(boolean isPreffered) Description copied from interface:IDutyHours
Sets the checks if is preffered hour.- Specified by:
setIsPrefferedHour
in interfaceIDutyHours
- Parameters:
isPreffered
- the new checks if is prefferd hour
-
isPrefferedHour
public boolean isPrefferedHour()Description copied from interface:IDutyHours
Checks if it is a preffered hour.- Specified by:
isPrefferedHour
in interfaceIDutyHours
- Returns:
- true, if it is a preffered hour
-