BrightSide Workbench Full Report + Source Code
AddressStub.java
Go to the documentation of this file.
1 /*
2  * TurrĂ³ i Cutiller Foundation. License notice.
3  * Copyright (C) 2022 Lluis TurrĂ³ Cutiller <http://www.turro.org/>
4  *
5  * This program is free software: you can redistribute it and/or modify
6  * it under the terms of the GNU Affero General Public License as published by
7  * the Free Software Foundation, either version 3 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU Affero General Public License for more details.
14  *
15  * You should have received a copy of the GNU Affero General Public License
16  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17  */
18 
19 package org.turro.contacts.stub;
20 
21 import org.turro.contacts.Address;
22 import org.turro.reflection.stub.DefaultStub;
23 
28 public class AddressStub extends DefaultStub {
29 
30  private String street;
31  private String zipCode;
32  private String city;
33  private String province;
34  private String state;
35  private String description;
36  private double latitude, longitude;
37 
38  public AddressStub(Address address) {
39  silentlyInitializeValues(address);
40  }
41 
42  public String getStreet() {
43  return street;
44  }
45 
46  public void setStreet(String street) {
47  this.street = street;
48  }
49 
50  public String getZipCode() {
51  return zipCode;
52  }
53 
54  public void setZipCode(String zipCode) {
55  this.zipCode = zipCode;
56  }
57 
58  public String getCity() {
59  return city;
60  }
61 
62  public void setCity(String city) {
63  this.city = city;
64  }
65 
66  public String getProvince() {
67  return province;
68  }
69 
70  public void setProvince(String province) {
71  this.province = province;
72  }
73 
74  public String getState() {
75  return state;
76  }
77 
78  public void setState(String state) {
79  this.state = state;
80  }
81 
82  public String getDescription() {
83  return description;
84  }
85 
86  public void setDescription(String description) {
87  this.description = description;
88  }
89 
90  public double getLatitude() {
91  return latitude;
92  }
93 
94  public void setLatitude(double latitude) {
95  this.latitude = latitude;
96  }
97 
98  public double getLongitude() {
99  return longitude;
100  }
101 
102  public void setLongitude(double longitude) {
103  this.longitude = longitude;
104  }
105 
106 }
void setLongitude(double longitude)
void setDescription(String description)
void setLatitude(double latitude)
void setProvince(String province)