Package my.uum.config

Class DistrictConfig

java.lang.Object
my.uum.config.DistrictConfig

public class DistrictConfig extends Object
Configuration class for districts by state in Malaysia.
  • Constructor Details

    • DistrictConfig

      public DistrictConfig()
  • Method Details

    • getDistrictsForState

      public static List<String> getDistrictsForState(String state)
      Gets the districts for a specific state.
      Parameters:
      state - the state name
      Returns:
      list of districts in the state
    • getAllDistrictsByState

      public static Map<String,List<String>> getAllDistrictsByState()
      Gets all districts by state.
      Returns:
      map of districts by state
    • findStateForDistrict

      public static String findStateForDistrict(String district)
      Finds the state for a given district.
      Parameters:
      district - the district name
      Returns:
      the state name, or null if not found