public class County extends Object
| Constructor and Description |
|---|
County(String countyName)
Instantiates a new County.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addDistricts(Set<District> districts)
Add districts.
|
boolean |
equals(Object o) |
String |
getCountyName()
Gets county name.
|
Set<District> |
getDistricts()
Gets districts.
|
int |
hashCode() |
void |
setCountyName(String countyName)
Sets county name.
|
void |
setDistricts(Set<District> districts)
Sets districts.
|
String |
toString() |
public County(String countyName)
countyName - the county namepublic String getCountyName()
public void setCountyName(String countyName)
countyName - the county namepublic void setDistricts(Set<District> districts)
districts - the districtsCopyright © 2019. All rights reserved.