public class WorkUnit extends Object
Represents working hours.
Constructor and Description |
---|
WorkUnit(Date from,
Date to)
Initializes a new instance of the
WorkUnit class. |
Modifier and Type | Method and Description |
---|---|
Date |
getFrom()
Gets the From date.
|
Date |
getTo()
Gets the To date.
|
double |
getWorkingHours()
Gets the duration of working hours.
|
void |
setFrom(Date value)
Sets the From date.
|
void |
setTo(Date value)
Sets the To date.
|
void |
setWorkingHours(double value)
Sets the duration of working hours.
|
public final Date getFrom()
Gets the From date.
public void setFrom(Date value)
Sets the From date.
value
- the From date.public final Date getTo()
Gets the To date.
public final void setTo(Date value)
Sets the To date.
value
- the To date.public final double getWorkingHours()
Gets the duration of working hours.
public final void setWorkingHours(double value)
Sets the duration of working hours.
value
- the duration of working hours.