Class Province


  • public class Province
    extends Object

    Pro

    The Pro

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

      • provinceName

        public String provinceName
        The Province name.
      • counties

        public Set<County> counties
        The Counties.
    • Constructor Detail

      • Province

        public Province​(String provinceName)
        Instantiates a new Province.
        Parameters:
        provinceName - the province name
    • Method Detail

      • getProvinceName

        public String getProvinceName()
        Gets province name.
        Returns:
        the province name
      • setProvinceName

        public void setProvinceName​(String provinceName)
        Sets province name.
        Parameters:
        provinceName - the province name
      • getCounties

        public Set<County> getCounties()
        Gets counties.
        Returns:
        the counties
      • setCounties

        public void setCounties​(Set<County> counties)
        Sets counties.
        Parameters:
        counties - the counties
      • hashCode

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

        public void addCounties​(Set<County> counties)
        Add counties.
        Parameters:
        counties - the counties