public class WeekendCalendarActivity extends CalendarActivityBase<Object>
DEFAULT_DURATION, endTime, id, name, startTime, userObject
Constructor and Description |
---|
WeekendCalendarActivity(DayOfWeek day)
Constructs a new weekend calendar activity.
|
WeekendCalendarActivity(Instant startTime,
Instant endTime,
DayOfWeek day)
Constructs a new weekend calendar activity with the start time and end
time.
|
WeekendCalendarActivity(String name,
DayOfWeek day)
Constructs a new weekend calendar activity with the given name.
|
WeekendCalendarActivity(String name,
Instant startTime,
Instant endTime,
DayOfWeek day)
Constructs a new weekend calendar activity with the given name, start
time, and end time.
|
Modifier and Type | Method and Description |
---|---|
DayOfWeek |
getDayOfWeek()
Returns the week day that this activity is representing, e.g.
|
getEndTime, getId, getName, getStartTime, getUserObject, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getEndTime, getId, getName, getStartTime
public WeekendCalendarActivity(DayOfWeek day)
Instant.now()
and the end time will be equal to
Instant.now()
plus the value of ActivityBase.DEFAULT_DURATION
.day
- the day of week that this activity is representingpublic WeekendCalendarActivity(String name, DayOfWeek day)
Instant.now()
and the end time
will be equal to Instant.now()
plus the value of
ActivityBase.DEFAULT_DURATION
.name
- the name of the activityday
- the day of week that this activity is representingpublic WeekendCalendarActivity(Instant startTime, Instant endTime, DayOfWeek day)
startTime
- the start time of the activityendTime
- the end time of the activityday
- the day of week that this activity is representingpublic WeekendCalendarActivity(String name, Instant startTime, Instant endTime, DayOfWeek day)
name
- the name of the activitystartTime
- the start time of the activityendTime
- the end time of the activityday
- the day of week that this activity is representingpublic final DayOfWeek getDayOfWeek()
DayOfWeek.SUNDAY
.Copyright © 2014 Dirk Lemmermann Software & Consulting. All rights reserved.