Subversion Repositories SmartDukaan

Rev

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

Rev 21675 Rev 21923
Line 83... Line 83...
83
    }
83
    }
84
 
84
 
85
    public void setPhoneNumber(String phoneNumber) {
85
    public void setPhoneNumber(String phoneNumber) {
86
        this.phoneNumber = phoneNumber;
86
        this.phoneNumber = phoneNumber;
87
    }
87
    }
-
 
88
    
-
 
89
    
-
 
90
 
-
 
91
	@Override
-
 
92
	public int hashCode() {
-
 
93
		final int prime = 31;
-
 
94
		int result = 1;
-
 
95
		result = prime * result + ((city == null) ? 0 : city.hashCode());
-
 
96
		result = prime * result + ((country == null) ? 0 : country.hashCode());
-
 
97
		result = prime * result + ((landmark == null) ? 0 : landmark.hashCode());
-
 
98
		result = prime * result + ((line1 == null) ? 0 : line1.hashCode());
-
 
99
		result = prime * result + ((line2 == null) ? 0 : line2.hashCode());
-
 
100
		result = prime * result + ((name == null) ? 0 : name.hashCode());
-
 
101
		result = prime * result + ((phoneNumber == null) ? 0 : phoneNumber.hashCode());
-
 
102
		result = prime * result + ((pinCode == null) ? 0 : pinCode.hashCode());
-
 
103
		result = prime * result + ((state == null) ? 0 : state.hashCode());
-
 
104
		return result;
-
 
105
	}
-
 
106
 
-
 
107
	@Override
-
 
108
	public boolean equals(Object obj) {
-
 
109
		if (this == obj)
-
 
110
			return true;
-
 
111
		if (obj == null)
-
 
112
			return false;
-
 
113
		if (getClass() != obj.getClass())
-
 
114
			return false;
-
 
115
		CustomAddress other = (CustomAddress) obj;
-
 
116
		if (city == null) {
-
 
117
			if (other.city != null)
-
 
118
				return false;
-
 
119
		} else if (!city.equals(other.city))
-
 
120
			return false;
-
 
121
		if (country == null) {
-
 
122
			if (other.country != null)
-
 
123
				return false;
-
 
124
		} else if (!country.equals(other.country))
-
 
125
			return false;
-
 
126
		if (landmark == null) {
-
 
127
			if (other.landmark != null)
-
 
128
				return false;
-
 
129
		} else if (!landmark.equals(other.landmark))
-
 
130
			return false;
-
 
131
		if (line1 == null) {
-
 
132
			if (other.line1 != null)
-
 
133
				return false;
-
 
134
		} else if (!line1.equals(other.line1))
-
 
135
			return false;
-
 
136
		if (line2 == null) {
-
 
137
			if (other.line2 != null)
-
 
138
				return false;
-
 
139
		} else if (!line2.equals(other.line2))
-
 
140
			return false;
-
 
141
		if (name == null) {
-
 
142
			if (other.name != null)
-
 
143
				return false;
-
 
144
		} else if (!name.equals(other.name))
-
 
145
			return false;
-
 
146
		if (phoneNumber == null) {
-
 
147
			if (other.phoneNumber != null)
-
 
148
				return false;
-
 
149
		} else if (!phoneNumber.equals(other.phoneNumber))
-
 
150
			return false;
-
 
151
		if (pinCode == null) {
-
 
152
			if (other.pinCode != null)
-
 
153
				return false;
-
 
154
		} else if (!pinCode.equals(other.pinCode))
-
 
155
			return false;
-
 
156
		if (state == null) {
-
 
157
			if (other.state != null)
-
 
158
				return false;
-
 
159
		} else if (!state.equals(other.state))
-
 
160
			return false;
-
 
161
		return true;
-
 
162
	}
88
 
163
 
89
	@Override
164
	@Override
90
	public String toString() {
165
	public String toString() {
91
		return "CustomAddress [name=" + name + ", line1=" + line1 + ", line2=" + line2 + ", landmark=" + landmark
166
		return "CustomAddress [name=" + name + ", line1=" + line1 + ", line2=" + line2 + ", landmark=" + landmark
92
				+ ", city=" + city + ", state=" + state + ", pinCode=" + pinCode + ", country=" + country
167
				+ ", city=" + city + ", state=" + state + ", pinCode=" + pinCode + ", country=" + country