# Class MaterialStore.InventoryStats

java.lang.Object
com.university.bookstore.api.MaterialStore.InventoryStats

Enclosing interface:
  `MaterialStore`

public static class MaterialStore.InventoryStats extends Object
Statistics class for inventory analysis.

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

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `InventoryStats(int totalCount, double averagePrice, double medianPrice, int uniqueTypes, int mediaCount, int printCount)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `double`
  `getAveragePrice()`
  `int`
  `getMediaCount()`
  `double`
  `getMedianPrice()`
  `int`
  `getPrintCount()`
  `int`
  `getTotalCount()`
  `int`
  `getUniqueTypes()`
  `String`
  `toString()`

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

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

- ## Constructor Details

  - ### InventoryStats

    public InventoryStats(int totalCount, double averagePrice, double medianPrice, int uniqueTypes, int mediaCount, int printCount)

- ## Method Details

  - ### getTotalCount

    public int getTotalCount()

  - ### getAveragePrice

    public double getAveragePrice()

  - ### getMedianPrice

    public double getMedianPrice()

  - ### getUniqueTypes

    public int getUniqueTypes()

  - ### getMediaCount

    public int getMediaCount()

  - ### getPrintCount

    public int getPrintCount()

  - ### toString

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