public interface IExpirable extends Serializable
| Modifier and Type | Method and Description |
|---|---|
LocalDateTime |
getExpirationDateTime() |
default boolean |
isExpirationDefined()
Check if the object has an expiration date defined.
|
default boolean |
isExpiredAt(LocalDateTime aDT)
Check if this object is expired at the provided date time.
|
default boolean |
isExpiredNow()
Check if this object is already expired.
|
@Nullable LocalDateTime getExpirationDateTime()
null if no expiration is defined.default boolean isExpirationDefined()
isExpiredNow() instead.true if an expiration date is defined,
false otherwise.default boolean isExpiredNow()
true if an expiration date is defined and the
expiration date is in the past, false otherwise.isExpirationDefined()default boolean isExpiredAt(@Nonnull LocalDateTime aDT)
aDT - The date time to check against. May not be null.true if an expiration date is defined and the
expiration date is in the past, false otherwise.isExpirationDefined()Copyright © 2014–2019 Philip Helger. All rights reserved.