Package eu.europa.esig.dss.spi.util
Class BaseTimeDependent
java.lang.Object
eu.europa.esig.dss.spi.util.BaseTimeDependent
- All Implemented Interfaces:
TimeDependent
,Serializable
- Direct Known Subclasses:
ServiceEquivalence
,TrustServiceStatusAndInformationExtensions
The default implementation of a time dependent interval
- See Also:
-
Constructor Summary
ConstructorDescriptionEmpty constructorBaseTimeDependent
(Date startDate, Date endDate) Default constructor -
Method Summary
Modifier and TypeMethodDescriptionThe end of the validity period.The start of the validity period.toString()
-
Constructor Details
-
Method Details
-
getStartDate
Description copied from interface:TimeDependent
The start of the validity period. It shall never be null.- Specified by:
getStartDate
in interfaceTimeDependent
- Returns:
- the start date of the validity period
-
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 interfaceTimeDependent
- Returns:
- the end date of the validity period or null if the object is still valid
-
toString
-