Class BudgetDataManager
java.lang.Object
BudgetDataManager
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDefines the type of budget data requested. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BigDecimal[]getBudgetData(int year, BudgetDataManager.BudgetType type) Returns budget statistics for a given year and budget type.
-
Constructor Details
-
BudgetDataManager
public BudgetDataManager()
-
-
Method Details
-
getBudgetData
Returns budget statistics for a given year and budget type.- Parameters:
year- the requested budget yeartype- the type of budget data (income or expense)- Returns:
- an array of
BigDecimalpercentage values, ornullif no data exists for the given year
-