Class BaseTimeDependent

java.lang.Object
eu.europa.esig.dss.spi.util.BaseTimeDependent
All Implemented Interfaces:
TimeDependent, Serializable
Direct Known Subclasses:
ServiceEquivalence, TrustServiceStatusAndInformationExtensions

public class BaseTimeDependent extends Object implements TimeDependent
The default implementation of a time dependent interval
See Also:
  • Constructor Details

    • BaseTimeDependent

      public BaseTimeDependent()
      Empty constructor
    • BaseTimeDependent

      public BaseTimeDependent(Date startDate, Date endDate)
      Default constructor
      Parameters:
      startDate - Date start of the validity
      endDate - Date end of the validity
  • Method Details

    • getStartDate

      public Date getStartDate()
      Description copied from interface: TimeDependent
      The start of the validity period. It shall never be null.
      Specified by:
      getStartDate in interface TimeDependent
      Returns:
      the start date of the validity period
    • getEndDate

      public Date getEndDate()
      Description copied from interface: TimeDependent
      The end of the validity period. Null indicates that this is the last known case. If not null, it is assumed that the end date is not older than the start date.
      Specified by:
      getEndDate in interface TimeDependent
      Returns:
      the end date of the validity period or null if the object is still valid
    • toString

      public String toString()
      Overrides:
      toString in class Object