From caf99c8fea1d915757fe3eaf7e87ff9b5096fc2e Mon Sep 17 00:00:00 2001 From: Adem Berber Date: Tue, 15 Feb 2022 04:15:58 +0100 Subject: [PATCH] Added Javadoc to ESRB Category Methods + Fixed PEGI Javadoc --- .../java/de/hs_fulda/ciip/projjpn/Games.java | 25 +++++++++++++++++++ 1 file changed, 25 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 9e8a0dd..f0b095e 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 @@ -1818,6 +1818,11 @@ public class Games { return result.substring(0, result.length() - 2); } + /** + * Checks if the game has no PEGI rating. + * + * @return Prints all the games without a PEGI rating. + */ public String checkPegiUnknown() { String result = ""; String query = "SELECT Game_Name, Game_PEGI_Rating FROM Games"; @@ -1847,6 +1852,11 @@ public class Games { return result.substring(0, result.length() - 2); } + /** + * Checks if the game is ESRB E. + * + * @return Prints all the ESRB E games. + */ public String checkEsrbE() { String result = ""; String query = "SELECT Game_Name, Game_ESRB_Rating FROM Games"; @@ -1876,6 +1886,11 @@ public class Games { return result.substring(0, result.length() - 2); } + /** + * Checks if the game is ESRB E10+. + * + * @return Prints all the ESRB E10+ games. + */ public String checkEsrbEten() { String result = ""; String query = "SELECT Game_Name, Game_ESRB_Rating FROM Games"; @@ -1905,6 +1920,11 @@ public class Games { return result.substring(0, result.length() - 2); } + /** + * Checks if the game is ESRB T. + * + * @return Prints all the ESRB T games. + */ public String checkEsrbT() { String result = ""; String query = "SELECT Game_Name, Game_ESRB_Rating FROM Games"; @@ -1934,6 +1954,11 @@ public class Games { return result.substring(0, result.length() - 2); } + /** + * Checks if the game is ESRB M. + * + * @return Prints all the ESRB M games. + */ public String checkEsrbM() { String result = ""; String query = "SELECT Game_Name, Game_ESRB_Rating FROM Games";