Klasse WeekendCalendarActivity

Alle implementierten Schnittstellen:
Activity, CalendarActivity

public class WeekendCalendarActivity extends CalendarActivityBase<Object>
A specialized calendar activity used to represent weekend days (e.g. Saturday, Sunday).
Seit:
1.0
  • Konstruktordetails

    • WeekendCalendarActivity

      public WeekendCalendarActivity(DayOfWeek day)
      Constructs a new weekend calendar activity. The initial start time will be set to Instant.now() and the end time will be equal to Instant.now() plus the value of ActivityBase.DEFAULT_DURATION.
      Parameter:
      day - the day of week that this activity is representing
      Seit:
      1.0
    • WeekendCalendarActivity

      public WeekendCalendarActivity(String name, DayOfWeek day)
      Constructs a new weekend calendar activity with the given name. The initial start time will be set to Instant.now() and the end time will be equal to Instant.now() plus the value of ActivityBase.DEFAULT_DURATION.
      Parameter:
      name - the name of the activity
      day - the day of week that this activity is representing
      Seit:
      1.0
    • WeekendCalendarActivity

      public WeekendCalendarActivity(Instant startTime, Instant endTime, DayOfWeek day)
      Constructs a new weekend calendar activity with the start time and end time.
      Parameter:
      startTime - the start time of the activity
      endTime - the end time of the activity
      day - the day of week that this activity is representing
      Seit:
      1.0
    • WeekendCalendarActivity

      public WeekendCalendarActivity(String name, Instant startTime, Instant endTime, DayOfWeek day)
      Constructs a new weekend calendar activity with the given name, start time, and end time.
      Parameter:
      name - the name of the activity
      startTime - the start time of the activity
      endTime - the end time of the activity
      day - the day of week that this activity is representing
      Seit:
      1.0
  • Methodendetails

    • getDayOfWeek

      public final DayOfWeek getDayOfWeek()
      Returns the week day that this activity is representing, e.g. DayOfWeek.SUNDAY.
      Gibt zurück:
      the day of week represented by this activity
      Seit:
      1.0