Class Period

java.lang.Object
org.opencastproject.scheduler.api.Period

@ThreadSafe public final class Period extends Object
Business object for a period.
  • Constructor Details

    • Period

      public Period(Option<Long> id, Date start, Date end, Option<String> purpose, Option<String> comment)
      Creates a period
      Parameters:
      id - the id
      start - the start date
      end - the end date
      purpose - the purpose
      comment - the comment
  • Method Details

    • getId

      public Option<Long> getId()
      Returns the period id
      Returns:
      the id
    • getStart

      public Date getStart()
      Returns the start date
      Returns:
      the start date
    • getEnd

      public Date getEnd()
      Returns the end date
      Returns:
      the end date
    • getPurpose

      public Option<String> getPurpose()
      Returns the purpose
      Returns:
      the purpose
    • getComment

      public Option<String> getComment()
      Returns the comment
      Returns:
      the comment
    • equals

      public boolean equals(Object that)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object