Class ChecksumFilePathStrategy
java.lang.Object
io.github.slimjar.downloader.strategy.ChecksumFilePathStrategy
- All Implemented Interfaces:
FilePathStrategy
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull FilePathStrategycreateStrategy(@NotNull File rootDirectory, @NotNull String algorithm) @NotNull FileselectFileFor(@NotNull Dependency dependency)
-
Method Details
-
selectFileFor
@Contract(value="_ -> new", pure=true) @NotNull public @NotNull File selectFileFor(@NotNull @NotNull Dependency dependency) - Specified by:
selectFileForin interfaceFilePathStrategy
-
createStrategy
@Contract(value="_, _ -> new", pure=true) @NotNull public static @NotNull FilePathStrategy createStrategy(@NotNull @NotNull File rootDirectory, @NotNull @NotNull String algorithm) throws IllegalStateException - Throws:
IllegalStateException
-