# Class BundleService.BundleStats

java.lang.Object
com.university.bookstore.composite.BundleService.BundleStats

Enclosing class:
  `BundleService`

public static class BundleService.BundleStats extends Object
Statistics class for bundle analysis.

Since:
  2024-09-15
Version:
  3.0
Author:
  Navid Mohaghegh

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `BundleStats(int totalBundles, int totalItems, double totalValue, double totalDiscountedValue, double totalSavings, double averageDiscount)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `double`
  `getAverageDiscount()`
  `int`
  `getTotalBundles()`
  `double`
  `getTotalDiscountedValue()`
  `int`
  `getTotalItems()`
  `double`
  `getTotalSavings()`
  `double`
  `getTotalValue()`
  `String`
  `toString()`

  ### Methods inherited from class java.lang.Object

  `equals, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## 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

    public String toString()
    Overrides:
      `toString` in class `Object`