Class County


  • public class County
    extends Object

    County

    The County

    Since:
    3 /23/2019
    Version:
    1.0
    Author:
    Mahdi Razavi
    • Constructor Detail

      • County

        public County​(String countyName)
        Instantiates a new County.
        Parameters:
        countyName - the county name
    • Method Detail

      • getCountyName

        public String getCountyName()
        Gets county name.
        Returns:
        the county name
      • setCountyName

        public void setCountyName​(String countyName)
        Sets county name.
        Parameters:
        countyName - the county name
      • getDistricts

        public Set<District> getDistricts()
        Gets districts.
        Returns:
        the districts
      • setDistricts

        public void setDistricts​(Set<District> districts)
        Sets districts.
        Parameters:
        districts - the districts
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • addDistricts

        public void addDistricts​(Set<District> districts)
        Add districts.
        Parameters:
        districts - the districts