Interface IHasTrashDateTime

  • 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 IHasTrashDateTime
    Interface for objects having a trash date time.
    Author:
    Philip Helger
    • Method Detail

      • getTrashDateTime

        @Nullable
        LocalDateTime getTrashDateTime()
        Returns:
        The trash date time or null if the object has not been trashed yet.
      • hasTrashDateTime

        default boolean hasTrashDateTime()
      • isTrashedAt

        default boolean isTrashedAt​(@Nonnull
                                    LocalDateTime aDT)
        Check if the object was trashed at the specified local date time. This is true, if the trashed time is ≤ than the specified local date time.
        Parameters:
        aDT - The time to check for trashing. May not be null.
        Returns:
        true if this object was trashed, false if not.
        Since:
        9.1.6