01: /**
02: * Copyright (C) 2001-2004 France Telecom R&D
03: *
04: * This library is free software; you can redistribute it and/or
05: * modify it under the terms of the GNU Lesser General Public
06: * License as published by the Free Software Foundation; either
07: * version 2 of the License, or (at your option) any later version.
08: *
09: * This library is distributed in the hope that it will be useful,
10: * but WITHOUT ANY WARRANTY; without even the implied warranty of
11: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12: * Lesser General Public License for more details.
13: *
14: * You should have received a copy of the GNU Lesser General Public
15: * License along with this library; if not, write to the Free Software
16: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17: */package inheritance.horizontal.speedoid;
18:
19: /**
20: *
21: * @author S.Chassande-Barrioz
22: */
23: public class Address {
24: private long addrid;
25: private String street;
26: private String city;
27: private String state;
28: private String zipcode;
29:
30: public Address() {
31: }
32:
33: public Address(String street, String city, String state,
34: String zipcode) {
35: this .street = street;
36: this .city = city;
37: this .state = state;
38: this .zipcode = zipcode;
39: }
40:
41: public String getStreet() {
42: return street;
43: }
44:
45: public void setStreet(String street) {
46: this .street = street;
47: }
48:
49: public String getCity() {
50: return city;
51: }
52:
53: public void setCity(String city) {
54: this .city = city;
55: }
56:
57: public String getState() {
58: return state;
59: }
60:
61: public void setState(String state) {
62: this .state = state;
63: }
64:
65: public String getZipcode() {
66: return zipcode;
67: }
68:
69: public void setZipcode(String zipcode) {
70: this .zipcode = zipcode;
71: }
72:
73: public boolean equals(Object o) {
74: return (o instanceof Address) && ((Address) o).addrid == addrid;
75: }
76:
77: }
|