Interface IPeriodObjectModel

All Known Implementing Classes:
AbstractPeriodObjectModel, PeriodObjectModel, RangeTablePeriodObjectModel

public interface IPeriodObjectModel
This Java interface defines a period of an object; This represents an object (element) valid upon a certain period of time. The validity can be infinite.

Consider the Java classes that extend this interface.

The period is defined by a start timestamp and an end timestamp that you can set up.
  • Method Summary

    Modifier and Type
    Method
    Description
    com.highdeal.util.range.TimeFrame
    Returns this object as TimeFrame object.
    Returns the end date of the period.
    Returns the start date of the period.
    void
    setEnd(Date end)
    Sets the end date of the period.
    void
    setStart(Date start)
    Sets the start date of the period.
  • Method Details

    • getStart

      Date getStart()
      Returns the start date of the period.
      Returns:
      The start date of the period, or null if the element has always been valid
    • setStart

      void setStart(Date start)
      Sets the start date of the period.
      Parameters:
      start - The possibly null start date of the period for the element
    • getEnd

      Date getEnd()
      Returns the end date of the period.
      Returns:
      The end date of the period, or null if the element will always be valid
    • setEnd

      void setEnd(Date end)
      Sets the end date of the period.
      Parameters:
      end - The end date of the period
    • asTimeFrame

      com.highdeal.util.range.TimeFrame asTimeFrame()
      Returns this object as TimeFrame object.
      Returns:
      this object as TimeFrame object.