Subversion Repositories SmartDukaan

Rev

Rev 21759 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 21759 Rev 21923
Line 9... Line 9...
9
	private String state;
9
	private String state;
10
	public String getPinCode() {
10
	public String getPinCode() {
11
		return pinCode;
11
		return pinCode;
12
	}
12
	}
13
	
13
	
14
	
-
 
15
	public void setPinCode(String pinCode) {
14
	public void setPinCode(String pinCode) {
16
		this.pinCode = pinCode;
15
		this.pinCode = pinCode;
17
	}
16
	}
18
	public String getLine1() {
17
	public String getLine1() {
19
		return line1;
18
		return line1;
Line 37... Line 36...
37
		return state;
36
		return state;
38
	}
37
	}
39
	public void setState(String state) {
38
	public void setState(String state) {
40
		this.state = state;
39
		this.state = state;
41
	}
40
	}
42
	@Override
-
 
43
	public String toString() {
-
 
44
		return "ShippingAddress [name=" + name + ", pinCode=" + pinCode + ", line1=" + line1 + ", line2=" + line2
-
 
45
				+ ", city=" + city + ", state=" + state + "]";
-
 
46
	}
-
 
47
 
-
 
48
 
-
 
49
	public String getName() {
41
	public String getName() {
50
		return name;
42
		return name;
51
	}
43
	}
52
 
-
 
53
 
-
 
54
	public void setName(String name) {
44
	public void setName(String name) {
55
		this.name = name;
45
		this.name = name;
56
	}
46
	}
57
	
47
	
58
	
48
	
-
 
49
	
-
 
50
	@Override
-
 
51
	public int hashCode() {
-
 
52
		final int prime = 31;
-
 
53
		int result = 1;
-
 
54
		result = prime * result + ((city == null) ? 0 : city.hashCode());
-
 
55
		result = prime * result + ((line1 == null) ? 0 : line1.hashCode());
-
 
56
		result = prime * result + ((line2 == null) ? 0 : line2.hashCode());
-
 
57
		result = prime * result + ((name == null) ? 0 : name.hashCode());
-
 
58
		result = prime * result + ((pinCode == null) ? 0 : pinCode.hashCode());
-
 
59
		result = prime * result + ((state == null) ? 0 : state.hashCode());
-
 
60
		return result;
-
 
61
	}
-
 
62
 
-
 
63
	@Override
-
 
64
	public boolean equals(Object obj) {
-
 
65
		if (this == obj)
-
 
66
			return true;
-
 
67
		if (obj == null)
-
 
68
			return false;
-
 
69
		if (getClass() != obj.getClass())
-
 
70
			return false;
-
 
71
		ShippingAddress other = (ShippingAddress) obj;
-
 
72
		if (city == null) {
-
 
73
			if (other.city != null)
-
 
74
				return false;
-
 
75
		} else if (!city.equals(other.city))
-
 
76
			return false;
-
 
77
		if (line1 == null) {
-
 
78
			if (other.line1 != null)
-
 
79
				return false;
-
 
80
		} else if (!line1.equals(other.line1))
-
 
81
			return false;
-
 
82
		if (line2 == null) {
-
 
83
			if (other.line2 != null)
-
 
84
				return false;
-
 
85
		} else if (!line2.equals(other.line2))
-
 
86
			return false;
-
 
87
		if (name == null) {
-
 
88
			if (other.name != null)
-
 
89
				return false;
-
 
90
		} else if (!name.equals(other.name))
-
 
91
			return false;
-
 
92
		if (pinCode == null) {
-
 
93
			if (other.pinCode != null)
-
 
94
				return false;
-
 
95
		} else if (!pinCode.equals(other.pinCode))
-
 
96
			return false;
-
 
97
		if (state == null) {
-
 
98
			if (other.state != null)
-
 
99
				return false;
-
 
100
		} else if (!state.equals(other.state))
-
 
101
			return false;
-
 
102
		return true;
-
 
103
	}
-
 
104
 
-
 
105
	@Override
-
 
106
	public String toString() {
-
 
107
		return "ShippingAddress [name=" + name + ", pinCode=" + pinCode + ", line1=" + line1 + ", line2=" + line2
-
 
108
				+ ", city=" + city + ", state=" + state + "]";
-
 
109
	}
-
 
110
	
-
 
111
	
59
}
112
}