Subversion Repositories SmartDukaan

Rev

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

Rev 21600 Rev 21923
Line 21... Line 21...
21
		return roleNames;
21
		return roleNames;
22
	}
22
	}
23
	public String getEmail() {
23
	public String getEmail() {
24
		return email;
24
		return email;
25
	}
25
	}
-
 
26
	
-
 
27
	
-
 
28
	@Override
-
 
29
	public int hashCode() {
-
 
30
		final int prime = 31;
-
 
31
		int result = 1;
-
 
32
		result = prime * result + ((email == null) ? 0 : email.hashCode());
-
 
33
		result = prime * result + ((roleNames == null) ? 0 : roleNames.hashCode());
-
 
34
		result = prime * result + userId;
-
 
35
		return result;
-
 
36
	}
-
 
37
	@Override
-
 
38
	public boolean equals(Object obj) {
-
 
39
		if (this == obj)
-
 
40
			return true;
-
 
41
		if (obj == null)
-
 
42
			return false;
-
 
43
		if (getClass() != obj.getClass())
-
 
44
			return false;
-
 
45
		UserInfo other = (UserInfo) obj;
-
 
46
		if (email == null) {
-
 
47
			if (other.email != null)
-
 
48
				return false;
-
 
49
		} else if (!email.equals(other.email))
-
 
50
			return false;
-
 
51
		if (roleNames == null) {
-
 
52
			if (other.roleNames != null)
-
 
53
				return false;
-
 
54
		} else if (!roleNames.equals(other.roleNames))
-
 
55
			return false;
-
 
56
		if (userId != other.userId)
-
 
57
			return false;
-
 
58
		return true;
-
 
59
	}
26
	@Override
60
	@Override
27
	public String toString() {
61
	public String toString() {
28
		return "UserInfo [email=" + email + ", userId=" + userId + ", roleNames=" + roleNames + "]";
62
		return "UserInfo [email=" + email + ", userId=" + userId + ", roleNames=" + roleNames + "]";
29
	}
63
	}
30
	
64