Subversion Repositories SmartDukaan

Rev

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

Rev 21720 Rev 22009
Line 100... Line 100...
100
	}
100
	}
101
	public void setMobile(String mobile) {
101
	public void setMobile(String mobile) {
102
		this.mobile = mobile;
102
		this.mobile = mobile;
103
	}
103
	}
104
	
104
	
-
 
105
	
105
	@Override
106
	@Override
106
	public int hashCode() {
107
	public int hashCode() {
107
		final int prime = 31;
108
		final int prime = 31;
108
		int result = 1;
109
		int result = 1;
109
		result = prime * result + ((createdOn == null) ? 0 : createdOn.hashCode());
-
 
110
		result = prime * result + ((email == null) ? 0 : email.hashCode());
-
 
111
		result = prime * result + (expired ? 1231 : 1237);
110
		result = prime * result + id;
112
		result = prime * result + ((expiryTimestamp == null) ? 0 : expiryTimestamp.hashCode());
-
 
113
		result = prime * result + (int) (id ^ (id >>> 32));
-
 
114
		result = prime * result + ((mobile == null) ? 0 : mobile.hashCode());
-
 
115
		result = prime * result + ((otp == null) ? 0 : otp.hashCode());
-
 
116
		result = prime * result + ((otpType == null) ? 0 : otpType.hashCode());
-
 
117
		return result;
111
		return result;
118
	}
112
	}
119
	@Override
113
	@Override
120
	public boolean equals(Object obj) {
114
	public boolean equals(Object obj) {
121
		if (this == obj)
115
		if (this == obj)
Line 123... Line 117...
123
		if (obj == null)
117
		if (obj == null)
124
			return false;
118
			return false;
125
		if (getClass() != obj.getClass())
119
		if (getClass() != obj.getClass())
126
			return false;
120
			return false;
127
		Otp other = (Otp) obj;
121
		Otp other = (Otp) obj;
128
		if (createdOn == null) {
-
 
129
			if (other.createdOn != null)
-
 
130
				return false;
-
 
131
		} else if (!createdOn.equals(other.createdOn))
-
 
132
			return false;
-
 
133
		if (email == null) {
-
 
134
			if (other.email != null)
-
 
135
				return false;
-
 
136
		} else if (!email.equals(other.email))
-
 
137
			return false;
-
 
138
		if (expired != other.expired)
-
 
139
			return false;
-
 
140
		if (expiryTimestamp == null) {
-
 
141
			if (other.expiryTimestamp != null)
-
 
142
				return false;
-
 
143
		} else if (!expiryTimestamp.equals(other.expiryTimestamp))
-
 
144
			return false;
-
 
145
		if (id != other.id)
122
		if (id != other.id)
146
			return false;
123
			return false;
147
		if (mobile == null) {
-
 
148
			if (other.mobile != null)
-
 
149
				return false;
-
 
150
		} else if (!mobile.equals(other.mobile))
-
 
151
			return false;
-
 
152
		if (otp == null) {
-
 
153
			if (other.otp != null)
-
 
154
				return false;
-
 
155
		} else if (!otp.equals(other.otp))
-
 
156
			return false;
-
 
157
		if (otpType != other.otpType)
-
 
158
			return false;
-
 
159
		return true;
124
		return true;
160
	}
125
	}
161
	@Override
126
	@Override
162
	public String toString() {
127
	public String toString() {
163
		return "Otp [id=" + id + ", email=" + email + ", mobile=" + mobile + ", otp=" + otp + ", otpType=" + otpType
128
		return "Otp [id=" + id + ", email=" + email + ", mobile=" + mobile + ", otp=" + otp + ", otpType=" + otpType