Class EdalDateRange

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<UntypedData>

    public class EdalDateRange
    extends EdalDate
    Data type to describe a time range.
    See Also:
    Serialized Form
    • Constructor Detail

      • EdalDateRange

        public EdalDateRange​(java.util.Calendar startDate,
                             EdalDatePrecision startPrecision,
                             java.util.Calendar endDate,
                             EdalDatePrecision endPrecision,
                             java.lang.String event)
        Default constructor to create a EdalDateRange with a specified startDate, startPrecision, endDate, endPrecision and event description.
        Parameters:
        startDate - the start date of the time range.
        startPrecision - the precision of the given start date.
        endDate - the end date of the time range
        endPrecision - the precision of the given end date.
        event - the description of the time range.
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class EdalDate
      • getEndDate

        public java.util.Calendar getEndDate()
        Getter for the endDate of this EdalDateRange.
        Returns:
        the endDate
      • setEndDate

        public void setEndDate​(java.util.Calendar endDate)
        Setter for the endDate of this EdalDateRange.
        Parameters:
        endDate - the endDate to set
      • setEndPrecision

        public void setEndPrecision​(EdalDatePrecision endPrecision)
        Setter for the endPrecision of this EdalDateRange.
        Parameters:
        endPrecision - the endPrecision to set
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class EdalDate