Package my.uum.config
Class DistrictConfig
java.lang.Object
my.uum.config.DistrictConfig
Configuration class for districts by state in Malaysia.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringfindStateForDistrict(String district) Finds the state for a given district.Gets all districts by state.getDistrictsForState(String state) Gets the districts for a specific state.
-
Constructor Details
-
DistrictConfig
public DistrictConfig()
-
-
Method Details
-
getDistrictsForState
Gets the districts for a specific state.- Parameters:
state- the state name- Returns:
- list of districts in the state
-
getAllDistrictsByState
Gets all districts by state.- Returns:
- map of districts by state
-
findStateForDistrict
Finds the state for a given district.- Parameters:
district- the district name- Returns:
- the state name, or null if not found
-