@FunctionalInterface public interface IHasCreationDateTime
| Modifier and Type | Method and Description |
|---|---|
default LocalDate |
getCreationDate() |
LocalDateTime |
getCreationDateTime() |
default LocalTime |
getCreationTime() |
default boolean |
hasCreationDateTime() |
default boolean |
isCreatedAt(LocalDateTime aDT)
Check if the object was created at the specified local date time.
|
@Nullable LocalDateTime getCreationDateTime()
null creation date time of the object.
Usually it is not null but in case this interface is
needed for legacy objects where the information was not yet stored,
it may be null.default boolean hasCreationDateTime()
true if a creation date time is present,
false if not.getCreationDateTime()@Nullable default LocalDate getCreationDate()
null if no creation date time is present.@Nullable default LocalTime getCreationTime()
null if no creation date time is present.default boolean isCreatedAt(@Nonnull LocalDateTime aDT)
true, if the creation time is ≤ than the specified local
date time.aDT - The time to check for creation. May not be null.true if this object was created, false if
not.Copyright © 2014–2023 Philip Helger. All rights reserved.