Package com.helger.datetime.expiration
Interface IExpirableWithReplacement<DATATYPE>
-
- Type Parameters:
DATATYPE- The type of the object use for defining a replacement.
- All Superinterfaces:
IExpirable
- All Known Subinterfaces:
IMutableExpirableWithReplacement<DATATYPE>
- All Known Implementing Classes:
ExpirableWithReplacement
public interface IExpirableWithReplacement<DATATYPE> extends IExpirable
Read-only interface for objects that can expire but offer a replacement once the object expires.- Author:
- Philip Helger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DATATYPEgetReplacement()In case the object has an expiration date defined and is expired, the object returned by this method directs to replacement object to be used instead.-
Methods inherited from interface com.helger.datetime.expiration.IExpirable
getExpirationDateTime, isExpirationDefined, isExpiredAt, isExpiredNow
-
-