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:
TrustServiceStatusAndInformationExtensions
public class BaseTimeDependent extends Object implements TimeDependent
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description BaseTimeDependent()
BaseTimeDependent(Date startDate, Date endDate)
-
Method Summary
Modifier and Type Method Description Date
getEndDate()
The end of the validity period.Date
getStartDate()
The start of the validity period.String
toString()
-
Constructor Details
-
BaseTimeDependent
public BaseTimeDependent() -
BaseTimeDependent
-
-
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
-