Class Period
java.lang.Object
org.opencastproject.scheduler.api.Period
Business object for a period.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanorg.opencastproject.util.data.Option<String> Returns the commentgetEnd()Returns the end dateorg.opencastproject.util.data.Option<Long> getId()Returns the period idorg.opencastproject.util.data.Option<String> Returns the purposegetStart()Returns the start dateinthashCode()
-
Constructor Details
-
Period
public Period(org.opencastproject.util.data.Option<Long> id, Date start, Date end, org.opencastproject.util.data.Option<String> purpose, org.opencastproject.util.data.Option<String> comment) Creates a period- Parameters:
id- the idstart- the start dateend- the end datepurpose- the purposecomment- the comment
-
-
Method Details
-
getId
Returns the period id- Returns:
- the id
-
getStart
Returns the start date- Returns:
- the start date
-
getEnd
Returns the end date- Returns:
- the end date
-
getPurpose
Returns the purpose- Returns:
- the purpose
-
getComment
Returns the comment- Returns:
- the comment
-
equals
-
hashCode
public int hashCode()
-