Package io.helidon.build.dev
Interface FileChangeAware
-
- All Known Implementing Classes:
BuildFile,BuildFiles,BuildRoot.Changes
public interface FileChangeAwareA type that can detect file modification time changes.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Optional<FileTime>changedTime()Returns the most recent change time, if any.static <T extends FileChangeAware>
Optional<FileTime>changedTimeOf(Collection<T> collection)Returns the most recent time if there is a change in any element of the collection.default booleanhasChanged()Returns whether or not this file has a changed time.
-
-
-
Method Detail
-
hasChanged
default boolean hasChanged()
Returns whether or not this file has a changed time.- Returns:
trueif changed.
-
changedTime
Optional<FileTime> changedTime()
Returns the most recent change time, if any.- Returns:
- The time if changed.
-
changedTimeOf
static <T extends FileChangeAware> Optional<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.
-
-