public class WorkingTime extends Object
Represents a working time during a weekday.
Constructor and Description |
---|
WorkingTime()
Initializes a new instance of the
WorkingTime class with a WorkingTime interval item as 24h |
WorkingTime(Date fromTime,
Date toTime)
Initializes a new instance of the
WorkingTime class with a WorkingTime interval item with
specified start and finish times. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Checks that the objects are equal.
|
Date |
getFromTime()
Gets the beginning of a working time.
|
Date |
getToTime()
Gets the end of a working time.
|
int |
hashCode()
Returns a hash code value for the instance of the
WorkingTime class. |
void |
setFromTime(Date value)
Sets the beginning of a working time.
|
void |
setToTime(Date value)
Sets the end of a working time.
|
public WorkingTime(Date fromTime, Date toTime)
Initializes a new instance of the WorkingTime
class with a WorkingTime
interval item with
specified start and finish times.
fromTime
- interval start timetoTime
- interval end timepublic WorkingTime()
Initializes a new instance of the WorkingTime
class with a WorkingTime
interval item as 24h
public boolean equals(Object obj)
Checks that the objects are equal.
public final Date getFromTime()
Gets the beginning of a working time.
public final void setFromTime(Date value)
Sets the beginning of a working time.
value
- the beginning of a working time.public final Date getToTime()
Gets the end of a working time.
public final void setToTime(Date value)
Sets the end of a working time.
value
- the end of a working time.public int hashCode()
Returns a hash code value for the instance of the WorkingTime
class.