to top
Datalogic APIs
public static class

WorkSchedule.WorkTimeInfo

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

Class Overview

WorkTimeInfo implements the BlobProperty that allows to manage work time information.

Summary

Nested Classes
class WorkSchedule.WorkTimeInfo.Builder Builder for WorkTimeInfo. 
Fields
public static final WorkSchedule.WorkTimeInfo NONE This is a special value that can be used to indicate that no work time is defined for a particular day.
Public Constructors
WorkTimeInfo()
Public Methods
LocalTime getEnd()
Get the end time of the work time.
LocalTime getStart()
Get the start time of the work time.
boolean isAfter(LocalTime time)
Check if the current work time is before the specified time.
boolean isBefore(LocalTime time)
Check if the current work time is before the specified time.
boolean isOverlapping(WorkSchedule.WorkTimeInfo other)
Check if this work time overlaps with another work time.
boolean isUndefined()
Check if the current work time is undefined.
[Expand]
Inherited Methods
From class java.lang.Object

Fields

public static final WorkSchedule.WorkTimeInfo NONE

Added in revision 44

This is a special value that can be used to indicate that no work time is defined for a particular day.

Public Constructors

public WorkTimeInfo ()

Added in revision 44

Public Methods

public LocalTime getEnd ()

Added in revision 44

Get the end time of the work time.

Returns
  • LocalTime the end time of the work time.

public LocalTime getStart ()

Added in revision 44

Get the start time of the work time.

Returns
  • LocalTime the start time of the work time.

public boolean isAfter (LocalTime time)

Added in revision 44

Check if the current work time is before the specified time.

Parameters
time the time to check against.
Returns
  • true if the work time is before the specified time, false otherwise.

public boolean isBefore (LocalTime time)

Added in revision 44

Check if the current work time is before the specified time.

Parameters
time the time to check against.
Returns
  • true if the work time is before the specified time, false otherwise.

public boolean isOverlapping (WorkSchedule.WorkTimeInfo other)

Added in revision 44

Check if this work time overlaps with another work time.

Parameters
other the other work time to check against.
Returns
  • true if they overlap, false otherwise.

public boolean isUndefined ()

Added in revision 44

Check if the current work time is undefined.

Returns
  • boolean.