Package com.aspose.tasks
Class WorkingTime
- java.lang.Object
-
- com.aspose.tasks.WorkingTime
-
public class WorkingTime extends Object
Represents a working time during a weekday.
-
-
Constructor Summary
Constructors Constructor Description WorkingTime()
Initializes a new instance of theWorkingTime
class with aWorkingTime
interval item as 24hWorkingTime(Date fromTime, Date toTime)
Initializes a new instance of theWorkingTime
class with aWorkingTime
interval item with specified start and finish times.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 theWorkingTime
class.void
setFromTime(Date value)
Sets the beginning of a working time.void
setToTime(Date value)
Sets the end of a working time.
-
-
-
Constructor Detail
-
WorkingTime
public WorkingTime(Date fromTime, Date toTime)
Initializes a new instance of the
WorkingTime
class with aWorkingTime
interval item with specified start and finish times.- Parameters:
fromTime
- interval start timetoTime
- interval end time
-
WorkingTime
public WorkingTime()
Initializes a new instance of the
WorkingTime
class with aWorkingTime
interval item as 24h
-
-
Method Detail
-
equals
public boolean equals(Object obj)
Checks that the objects are equal.
-
getFromTime
public final Date getFromTime()
Gets the beginning of a working time.
- Returns:
- the beginning of a working time.
-
setFromTime
public final void setFromTime(Date value)
Sets the beginning of a working time.
- Parameters:
value
- the beginning of a working time.
-
getToTime
public final Date getToTime()
Gets the end of a working time.
- Returns:
- the end of a working time.
-
setToTime
public final void setToTime(Date value)
Sets the end of a working time.
- Parameters:
value
- the end of a working time.
-
hashCode
public int hashCode()
Returns a hash code value for the instance of the
WorkingTime
class.
-
-