]> Git Server - tankstelle.git/commitdiff
forgot some javadoc
authorRobin Cheney <cheneyr@eternal.ddnss.de>
Fri, 28 Nov 2025 09:04:05 +0000 (10:04 +0100)
committerRobin Cheney <cheneyr@eternal.ddnss.de>
Fri, 28 Nov 2025 09:04:05 +0000 (10:04 +0100)
src/main/java/de/diejungsvondertanke/tankstelle/Main.java

index fe94c3ca8ab076cfbc7dc89fba494fb7299fa80e..a895b39a2c3642927802560be4bbd9e104123c34 100644 (file)
@@ -36,8 +36,8 @@ public class Main {
     /**
      * Launch GUI
      * 
-     * @param args Program arguments from additionally passed parameters. Mandatory,
-     *             but never used here.
+     * @param args Program arguments from additionally passed parameters. Mandatory
+     *             to have, but never used here.
      */
     public static void main(String[] args) {
         JFX.launch(args);
@@ -357,6 +357,18 @@ public class Main {
         return sum;
     }
 
+    /**
+     * Get the cumulative price for the amount of fuel stored for every fuel station
+     * 
+     * => What you would get if you would sell all fuel of eveery station at the
+     * current price(s)
+     * 
+     * @return the income in €
+     * 
+     * @author Robin Cheney
+     * 
+     * @see FuelStation#get_cumulative_retail_price()
+     */
     public static double get_cumulative_retail_price() {
         double sum = 0;
         for (FuelStation station : fuelStations) {