Class BundleService.BundleStats
java.lang.Object
com.university.bookstore.composite.BundleService.BundleStats
- Enclosing class:
BundleService
Statistics class for bundle analysis.
- Since:
- 2024-09-15
- Version:
- 3.0
- Author:
- Navid Mohaghegh
-
Constructor Summary
ConstructorsConstructorDescriptionBundleStats(int totalBundles, int totalItems, double totalValue, double totalDiscountedValue, double totalSavings, double averageDiscount) -
Method Summary
-
Constructor Details
-
BundleStats
public BundleStats(int totalBundles, int totalItems, double totalValue, double totalDiscountedValue, double totalSavings, double averageDiscount)
-
-
Method Details
-
getTotalBundles
public int getTotalBundles() -
getTotalItems
public int getTotalItems() -
getTotalValue
public double getTotalValue() -
getTotalDiscountedValue
public double getTotalDiscountedValue() -
getTotalSavings
public double getTotalSavings() -
getAverageDiscount
public double getAverageDiscount() -
toString
-