Class WorkingTime

  • All Implemented Interfaces:
    Cloneable

    public class WorkingTime
    extends Object
    implements Cloneable
    Represents a time interval in the working time of the user
    Since:
    8.7.2
    Author:
    Marco Meschieri - LogicalDOC
    • Constructor Detail

      • WorkingTime

        public WorkingTime()
      • WorkingTime

        public WorkingTime​(int dayOfWeek,
                           int hourStart,
                           int minuteStart)
    • Method Detail

      • getDayOfWeek

        public int getDayOfWeek()
      • setDayOfWeek

        public void setDayOfWeek​(int dayOfWeek)
      • getHourStart

        public int getHourStart()
      • setHourStart

        public void setHourStart​(int hourStart)
      • getMinuteStart

        public int getMinuteStart()
      • setMinuteStart

        public void setMinuteStart​(int minuteStart)
      • getHourEnd

        public int getHourEnd()
      • setHourEnd

        public void setHourEnd​(int hourEnd)
      • getMinuteEnd

        public int getMinuteEnd()
      • setMinuteEnd

        public void setMinuteEnd​(int minuteEnd)
      • getDescription

        public String getDescription()
      • setDescription

        public void setDescription​(String description)
      • getLabel

        public String getLabel()
      • setLabel

        public void setLabel​(String label)
      • matchesCurrentTime

        public boolean matchesCurrentTime()
        Checks if this working time matches the current time
        Returns:
        true only id the current time matches the working time
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object