Package com.helger.datetime.domain
Interface IHasDeletionDateTime
-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface IHasDeletionDateTime
Interface for objects having a deletion date time.- Author:
- Philip Helger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default LocalDategetDeletionDate()LocalDateTimegetDeletionDateTime()default LocalTimegetDeletionTime()default booleanhasDeletionDateTime()default booleanisDeletedAt(LocalDateTime aDT)Check if the object was deleted at the specified local date time.
-
-
-
Method Detail
-
getDeletionDateTime
@Nullable LocalDateTime getDeletionDateTime()
- Returns:
- The deletion date time or
nullif the object has not been deleted yet.
-
hasDeletionDateTime
default boolean hasDeletionDateTime()
-
isDeletedAt
default boolean isDeletedAt(@Nonnull LocalDateTime aDT)
Check if the object was deleted at the specified local date time. This istrue, if the deletion time is ≤ than the specified local date time.- Parameters:
aDT- The time to check for deletion. May not benull.- Returns:
trueif this object was deleted,falseif not.- Since:
- 9.1.6
-
-