From 95e235526ca9a18e3b9bea2fbf8c0d90dd1d9e66 Mon Sep 17 00:00:00 2001 From: MartinStyk Date: Tue, 3 May 2016 21:21:26 +0200 Subject: [PATCH] Simple clean and documentation --- .../bakalarka/downloaders/DownloadTask.java | 1 + .../bakalarka/linkfinders/ApkLinkFinder.java | 17 ++++++++++++++--- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/src/main/java/sk/styk/martin/bakalarka/downloaders/DownloadTask.java b/src/main/java/sk/styk/martin/bakalarka/downloaders/DownloadTask.java index 082471b..d4d9a37 100644 --- a/src/main/java/sk/styk/martin/bakalarka/downloaders/DownloadTask.java +++ b/src/main/java/sk/styk/martin/bakalarka/downloaders/DownloadTask.java @@ -13,6 +13,7 @@ import org.slf4j.LoggerFactory; /** + * Download task for one file. Can e executed concurrently * * @author Martin Styk */ diff --git a/src/main/java/sk/styk/martin/bakalarka/linkfinders/ApkLinkFinder.java b/src/main/java/sk/styk/martin/bakalarka/linkfinders/ApkLinkFinder.java index 9358a0f..79a4082 100644 --- a/src/main/java/sk/styk/martin/bakalarka/linkfinders/ApkLinkFinder.java +++ b/src/main/java/sk/styk/martin/bakalarka/linkfinders/ApkLinkFinder.java @@ -14,9 +14,20 @@ */ public interface ApkLinkFinder { - public List findLinks(); + /** + * Finds links to APK files + * @return List of URLs to APK files + */ + List findLinks(); - public void setMetadataFile(File metadataFile); + /** + * Sets metadata file. Only used with Playdron + * @param metadataFile metadata file containing links to APKs + */ + void setMetadataFile(File metadataFile); - public void setNumberOfApks(int numberOfApks); + /** + * @param numberOfApks number of APKs we want to download + */ + void setNumberOfApks(int numberOfApks); }