Class BudgetDataManager

java.lang.Object
BudgetDataManager

public class BudgetDataManager extends Object
The BudgetDataManager class is responsible for managing and providing access to government budget statistics.

It stores pre-calculated budget data for multiple years and distinguishes between income and expense statistics.

Budget data is represented as percentages of total amounts using BigDecimal for high-precision financial calculations.

  • Constructor Details

    • BudgetDataManager

      public BudgetDataManager()
  • Method Details

    • getBudgetData

      public static BigDecimal[] getBudgetData(int year, BudgetDataManager.BudgetType type)
      Returns budget statistics for a given year and budget type.
      Parameters:
      year - the requested budget year
      type - the type of budget data (income or expense)
      Returns:
      an array of BigDecimal percentage values, or null if no data exists for the given year