to top
Datalogic APIs
public static class

WorkSchedule.Builder

extends Object
java.lang.Object
   ↳ com.datalogic.device.configuration.WorkSchedule.Builder

Class Overview

Builder for WorkSchedule.

Summary

Public Constructors
Builder()
Constructor for Builder.
Public Methods
WorkSchedule.Builder addGeneric(WorkSchedule.WorkTimeInfo workTimeInfo)
Add a generic work time info.
WorkSchedule.Builder addSchedule(int weekDay, WorkSchedule.WorkTimeInfo workTimeInfo)
Add a work time info for a specific day of the week.
WorkSchedule.Builder addWeekly(int day, WorkSchedule.WorkTimeInfo workTimeInfo)
Add a work time info for a specific day of the week.
WorkSchedule build()
Build the WorkSchedule instance.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Builder ()

Added in revision 44

Constructor for Builder.

Public Methods

public WorkSchedule.Builder addGeneric (WorkSchedule.WorkTimeInfo workTimeInfo)

Added in revision 44

Add a generic work time info.

Parameters
workTimeInfo the work time info to add.
Returns
  • Builder the builder instance.
Throws
IllegalArgumentException if the work time info overlaps with an existing one.

public WorkSchedule.Builder addSchedule (int weekDay, WorkSchedule.WorkTimeInfo workTimeInfo)

Added in revision 44

Add a work time info for a specific day of the week.

Parameters
weekDay the day of the week (0 = generic, 1 = Sunday, 2 = Monday, ..., 7 = Saturday)
workTimeInfo the work time info to add.
Returns
  • Builder the builder instance.
Throws
IllegalArgumentException if the week day is not between 0 and 7, or if the work time info overlaps with an existing one.

public WorkSchedule.Builder addWeekly (int day, WorkSchedule.WorkTimeInfo workTimeInfo)

Added in revision 44

Add a work time info for a specific day of the week.

Parameters
day the day of the week (1 = Sunday, 2 = Monday, ..., 7 = Saturday)
workTimeInfo the work time info to add.
Returns
  • Builder the builder instance.
Throws
IllegalArgumentException if the week day is not between 1 and 7, or if the work time info overlaps with an existing one.

public WorkSchedule build ()

Added in revision 44

Build the WorkSchedule instance.

Returns
  • WorkSchedule the built instance.