Interface FileChangeAware

    • Method Detail

      • hasChanged

        default boolean hasChanged()
        Returns whether or not this file has a changed time.
        Returns:
        true if changed.
      • changedTime

        Optional<FileTime> changedTime()
        Returns the most recent change time, if any.
        Returns:
        The time if changed.
      • changedTimeOf

        static <T extends FileChangeAwareOptional<FileTime> changedTimeOf​(Collection<T> collection)
        Returns the most recent time if there is a change in any element of the collection.
        Type Parameters:
        T - The collection type.
        Parameters:
        collection - The collection.
        Returns:
        The time if changed.