Class FolderedFilePathStrategy
java.lang.Object
io.github.slimjar.downloader.strategy.FolderedFilePathStrategy
- All Implemented Interfaces:
FilePathStrategy
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull FilePathStrategycreateStrategy(@NotNull File rootDirectory) @NotNull FileselectFileFor(@NotNull Dependency dependency)
-
Method Details
-
selectFileFor
@Contract(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) throws IllegalStateException - Throws:
IllegalStateException
-