Package com.helger.datetime.domain
Interface IHasLastModificationDateTime
-
- 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 IHasLastModificationDateTime
Interface for objects having a last modification date time.- Author:
- Philip Helger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default LocalDategetLastModificationDate()LocalDateTimegetLastModificationDateTime()default LocalTimegetLastModificationTime()default booleanhasLastModificationDateTime()default booleanisLastModifiedAt(LocalDateTime aDT)Check if the object was modified at the specified local date time.
-
-
-
Method Detail
-
getLastModificationDateTime
@Nullable LocalDateTime getLastModificationDateTime()
- Returns:
- The last modification date time or
nullif the object has not been modified yet.
-
hasLastModificationDateTime
default boolean hasLastModificationDateTime()
-
isLastModifiedAt
default boolean isLastModifiedAt(@Nonnull LocalDateTime aDT)
Check if the object was modified at the specified local date time. This istrue, if the modified time is ≤ than the specified local date time.- Parameters:
aDT- The time to check for modification. May not benull.- Returns:
trueif this object was modified,falseif not.- Since:
- 9.1.6
-
-