Subversion Repositories SmartDukaan

Rev

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

Rev 21715 Rev 21924
Line 60... Line 60...
60
		return state;
60
		return state;
61
	}
61
	}
62
	public void setState(String state) {
62
	public void setState(String state) {
63
		this.state = state;
63
		this.state = state;
64
	}
64
	}
-
 
65
	
-
 
66
	
-
 
67
	@Override
-
 
68
	public int hashCode() {
-
 
69
		final int prime = 31;
-
 
70
		int result = 1;
-
 
71
		result = prime * result + ((city == null) ? 0 : city.hashCode());
-
 
72
		result = prime * result + id;
-
 
73
		result = prime * result + pinCode;
-
 
74
		result = prime * result + ((state == null) ? 0 : state.hashCode());
-
 
75
		return result;
-
 
76
	}
-
 
77
	@Override
-
 
78
	public boolean equals(Object obj) {
-
 
79
		if (this == obj)
-
 
80
			return true;
-
 
81
		if (obj == null)
-
 
82
			return false;
-
 
83
		if (getClass() != obj.getClass())
-
 
84
			return false;
-
 
85
		PostOffice other = (PostOffice) obj;
-
 
86
		if (city == null) {
-
 
87
			if (other.city != null)
-
 
88
				return false;
-
 
89
		} else if (!city.equals(other.city))
-
 
90
			return false;
-
 
91
		if (id != other.id)
-
 
92
			return false;
-
 
93
		if (pinCode != other.pinCode)
-
 
94
			return false;
-
 
95
		if (state == null) {
-
 
96
			if (other.state != null)
-
 
97
				return false;
-
 
98
		} else if (!state.equals(other.state))
-
 
99
			return false;
-
 
100
		return true;
-
 
101
	}
65
	@Override
102
	@Override
66
	public String toString() {
103
	public String toString() {
67
		return "PostOffice [id=" + id + ", pinCode=" + pinCode + ", city=" + city + ", state=" + state + "]";
104
		return "PostOffice [id=" + id + ", pinCode=" + pinCode + ", city=" + city + ", state=" + state + "]";
68
	}
105
	}
69
	
106