2 * Copyright 2014 Gustavo Martin Morcuende
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
16 package name.gumartinm.weather.information.model.forecastweather;
18 import java.io.Serializable;
21 public class City implements Serializable {
22 private static final long serialVersionUID = 3079687975077030704L;
24 private String country;
27 private Number population;
29 public Coord getCoord(){
32 public void setCoord(final Coord coord){
35 public String getCountry(){
38 public void setCountry(final String country){
39 this.country = country;
41 public Number getId(){
44 public void setId(final Number id){
47 public String getName(){
50 public void setName(final String name){
53 public Number getPopulation(){
54 return this.population;
56 public void setPopulation(final Number population){
57 this.population = population;
61 public String toString() {
62 final StringBuilder builder = new StringBuilder();
63 builder.append("City [coord=").append(this.coord).append(", country=").append(this.country)
64 .append(", id=").append(this.id).append(", name=").append(this.name)
65 .append(", population=").append(this.population).append("]");
66 return builder.toString();