From 54028aec7349ba04db6faafb83f29d685a6c91a4 Mon Sep 17 00:00:00 2001 From: Adem Berber Date: Tue, 15 Feb 2022 04:05:58 +0100 Subject: [PATCH] Added Javadoc to Release Date Category Methods --- .../java/de/hs_fulda/ciip/projjpn/Games.java | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java index 38b747b..6f9df1f 100644 --- a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java +++ b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java @@ -306,6 +306,12 @@ public class Games { return result.substring(0, result.length() - 2); } + /** + * Checks if the release dates are all the same across Europe, Japan, North + * America and Australia. + * + * @return Prints the games which have the same release dates. + */ public String checkAllSameReleaseDates() { String result = ""; String query = "SELECT Game_Name, Game_Release_EU, Game_Release_JP, Game_Release_NA, Game_Release_AU FROM Games"; @@ -347,6 +353,12 @@ public class Games { return result.substring(0, result.length() - 2); } + /** + * Checks if the release dates are not all the same across Europe, Japan, North + * America and Australia. + * + * @return Prints the games which do not have the same release dates. + */ public String checkAllDifferentReleaseDates() { String result = ""; String query = "SELECT Game_Name, Game_Release_EU, Game_Release_JP, Game_Release_NA, Game_Release_AU FROM Games"; @@ -1176,6 +1188,11 @@ public class Games { return result.substring(0, result.length() - 2); } + /** + * Checks the release dates that are unknown. + * + * @return Prints the games which do not have a release date. + */ public String checkReleaseDateUnknown() { String result = ""; String query = "SELECT Game_Name, Game_Release_AU FROM Games"; @@ -1206,6 +1223,12 @@ public class Games { return result.substring(0, result.length() - 2); } + /** + * Checks if the release years are all the same across Europe, Japan, North + * America and Australia. + * + * @return Prints the games which have the same release year. + */ public String checkAllSameReleaseYear() { String result = ""; String query = "SELECT Game_Name, Game_Release_EU, Game_Release_JP, Game_Release_NA, Game_Release_AU FROM Games"; @@ -1247,6 +1270,12 @@ public class Games { return result.substring(0, result.length() - 2); } + /** + * Checks if the release year are not all the same across Europe, Japan, North + * America and Australia. + * + * @return Prints the games which do not have the same release year. + */ public String checkAllDifferentReleaseYear() { String result = ""; String query = "SELECT Game_Name, Game_Release_EU, Game_Release_JP, Game_Release_NA, Game_Release_AU FROM Games";