Class RegenerationCheckStrategy.VersionMarkerRegenerationCheckStrategy
- java.lang.Object
-
- net.stoerr.ai.aigenpipeline.framework.task.RegenerationCheckStrategy.VersionMarkerRegenerationCheckStrategy
-
- All Implemented Interfaces:
RegenerationCheckStrategy
- Enclosing interface:
- RegenerationCheckStrategy
public static class RegenerationCheckStrategy.VersionMarkerRegenerationCheckStrategy extends Object implements RegenerationCheckStrategy
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.stoerr.ai.aigenpipeline.framework.task.RegenerationCheckStrategy
RegenerationCheckStrategy.VersionMarkerRegenerationCheckStrategy
-
-
Field Summary
-
Fields inherited from interface net.stoerr.ai.aigenpipeline.framework.task.RegenerationCheckStrategy
ALWAYS, IF_NOT_EXISTS, IF_OLDER, VERSIONMARKER
-
-
Constructor Summary
Constructors Constructor Description VersionMarkerRegenerationCheckStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
needsRegeneration(AIInOut output, List<AIInOut> inputs, WritingStrategy writingStrategy, List<String> inputVersions)
Decides whether the output file needs to be regenerated.
-
-
-
Method Detail
-
needsRegeneration
public boolean needsRegeneration(@Nonnull AIInOut output, @Nonnull List<AIInOut> inputs, @Nonnull WritingStrategy writingStrategy, @Nonnull List<String> inputVersions)
Description copied from interface:RegenerationCheckStrategy
Decides whether the output file needs to be regenerated.- Specified by:
needsRegeneration
in interfaceRegenerationCheckStrategy
- Parameters:
output
- the output fileinputs
- the input files . Caution: a file with name "-" is a placeholder for stdin - it is not a file.writingStrategy
- the writing strategy used to write the output file.inputVersions
- versions of all inputs- Returns:
- true if the output file needs to be regenerated.
-
-