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 theWorkingTimeclass with aWorkingTimeinterval item as 24hWorkingTime(Date fromTime, Date toTime)Initializes a new instance of theWorkingTimeclass with aWorkingTimeinterval item with specified start and finish times.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Checks that the objects are equal.DategetFromTime()Gets the beginning of a working time.DategetToTime()Gets the end of a working time.inthashCode()Returns a hash code value for the instance of theWorkingTimeclass.voidsetFromTime(Date value)Sets the beginning of a working time.voidsetToTime(Date value)Sets the end of a working time.
-
-
-
Constructor Detail
-
WorkingTime
public WorkingTime(Date fromTime, Date toTime)
Initializes a new instance of the
WorkingTimeclass with aWorkingTimeinterval item with specified start and finish times.- Parameters:
fromTime- interval start timetoTime- interval end time
-
WorkingTime
public WorkingTime()
Initializes a new instance of the
WorkingTimeclass with aWorkingTimeinterval 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
WorkingTimeclass.
-
-