Subversion Repositories SmartDukaan

Rev

Rev 21923 | Rev 26821 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 21923 Rev 22858
Line 2... Line 2...
2
package com.spice.profitmandi.common.model;
2
package com.spice.profitmandi.common.model;
3
 
3
 
4
 
4
 
5
public class CustomAddress {
5
public class CustomAddress {
6
 
6
 
-
 
7
	private int id;
7
    private String name;
8
    private String name;
8
    private String line1;
9
    private String line1;
9
    private String line2;
10
    private String line2;
10
    private String landmark;
11
    private String landmark;
11
    private String city;
12
    private String city;
12
    private String state;
13
    private String state;
13
    private String pinCode;
14
    private String pinCode;
14
    private String country;
15
    private String country;
15
    private String phoneNumber;
16
    private String phoneNumber;
16
 
17
 
-
 
18
    public int getId() {
-
 
19
		return id;
-
 
20
	}
-
 
21
    public void setId(int id) {
-
 
22
		this.id = id;
-
 
23
	}
-
 
24
    
17
    public String getName() {
25
    public String getName() {
18
        return name;
26
        return name;
19
    }
27
    }
20
 
28
 
21
    public void setName(String name) {
29
    public void setName(String name) {
Line 83... Line 91...
83
    }
91
    }
84
 
92
 
85
    public void setPhoneNumber(String phoneNumber) {
93
    public void setPhoneNumber(String phoneNumber) {
86
        this.phoneNumber = phoneNumber;
94
        this.phoneNumber = phoneNumber;
87
    }
95
    }
88
    
-
 
89
    
-
 
90
 
-
 
91
	@Override
96
	@Override
92
	public int hashCode() {
97
	public int hashCode() {
93
		final int prime = 31;
98
		final int prime = 31;
94
		int result = 1;
99
		int result = 1;
95
		result = prime * result + ((city == null) ? 0 : city.hashCode());
100
		result = prime * result + ((city == null) ? 0 : city.hashCode());
96
		result = prime * result + ((country == null) ? 0 : country.hashCode());
101
		result = prime * result + ((country == null) ? 0 : country.hashCode());
-
 
102
		result = prime * result + id;
97
		result = prime * result + ((landmark == null) ? 0 : landmark.hashCode());
103
		result = prime * result + ((landmark == null) ? 0 : landmark.hashCode());
98
		result = prime * result + ((line1 == null) ? 0 : line1.hashCode());
104
		result = prime * result + ((line1 == null) ? 0 : line1.hashCode());
99
		result = prime * result + ((line2 == null) ? 0 : line2.hashCode());
105
		result = prime * result + ((line2 == null) ? 0 : line2.hashCode());
100
		result = prime * result + ((name == null) ? 0 : name.hashCode());
106
		result = prime * result + ((name == null) ? 0 : name.hashCode());
101
		result = prime * result + ((phoneNumber == null) ? 0 : phoneNumber.hashCode());
107
		result = prime * result + ((phoneNumber == null) ? 0 : phoneNumber.hashCode());
102
		result = prime * result + ((pinCode == null) ? 0 : pinCode.hashCode());
108
		result = prime * result + ((pinCode == null) ? 0 : pinCode.hashCode());
103
		result = prime * result + ((state == null) ? 0 : state.hashCode());
109
		result = prime * result + ((state == null) ? 0 : state.hashCode());
104
		return result;
110
		return result;
105
	}
111
	}
106
 
-
 
107
	@Override
112
	@Override
108
	public boolean equals(Object obj) {
113
	public boolean equals(Object obj) {
109
		if (this == obj)
114
		if (this == obj)
110
			return true;
115
			return true;
111
		if (obj == null)
116
		if (obj == null)
Line 121... Line 126...
121
		if (country == null) {
126
		if (country == null) {
122
			if (other.country != null)
127
			if (other.country != null)
123
				return false;
128
				return false;
124
		} else if (!country.equals(other.country))
129
		} else if (!country.equals(other.country))
125
			return false;
130
			return false;
-
 
131
		if (id != other.id)
-
 
132
			return false;
126
		if (landmark == null) {
133
		if (landmark == null) {
127
			if (other.landmark != null)
134
			if (other.landmark != null)
128
				return false;
135
				return false;
129
		} else if (!landmark.equals(other.landmark))
136
		} else if (!landmark.equals(other.landmark))
130
			return false;
137
			return false;
Line 158... Line 165...
158
				return false;
165
				return false;
159
		} else if (!state.equals(other.state))
166
		} else if (!state.equals(other.state))
160
			return false;
167
			return false;
161
		return true;
168
		return true;
162
	}
169
	}
163
 
-
 
164
	@Override
170
	@Override
165
	public String toString() {
171
	public String toString() {
166
		return "CustomAddress [name=" + name + ", line1=" + line1 + ", line2=" + line2 + ", landmark=" + landmark
172
		return "CustomAddress [id=" + id + ", name=" + name + ", line1=" + line1 + ", line2=" + line2 + ", landmark="
167
				+ ", city=" + city + ", state=" + state + ", pinCode=" + pinCode + ", country=" + country
173
				+ landmark + ", city=" + city + ", state=" + state + ", pinCode=" + pinCode + ", country=" + country
168
				+ ", phoneNumber=" + phoneNumber + "]";
174
				+ ", phoneNumber=" + phoneNumber + "]";
169
	}
175
	}
170
    
176
    
171
    
-
 
172
 
177
 
173
}
178
}