Rev 21925 | Rev 22139 | Go to most recent revision | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed
package com.spice.profitmandi.web.model;import java.util.Set;import com.spice.profitmandi.dao.enumuration.dtr.RoleType;public class FofoDetails {private int fofoId;private String emailId;private Set<RoleType> roleTypes;public int getFofoId() {return fofoId;}public void setFofoId(int fofoId) {this.fofoId = fofoId;}public String getEmailId() {return emailId;}public void setEmailId(String emailId) {this.emailId = emailId;}public Set<RoleType> getRoleTypes() {return roleTypes;}public void setRoleTypes(Set<RoleType> roleTypes) {this.roleTypes = roleTypes;}@Overridepublic int hashCode() {final int prime = 31;int result = 1;result = prime * result + ((emailId == null) ? 0 : emailId.hashCode());result = prime * result + fofoId;result = prime * result + ((roleTypes == null) ? 0 : roleTypes.hashCode());return result;}@Overridepublic boolean equals(Object obj) {if (this == obj)return true;if (obj == null)return false;if (getClass() != obj.getClass())return false;FofoDetails other = (FofoDetails) obj;if (emailId == null) {if (other.emailId != null)return false;} else if (!emailId.equals(other.emailId))return false;if (fofoId != other.fofoId)return false;if (roleTypes == null) {if (other.roleTypes != null)return false;} else if (!roleTypes.equals(other.roleTypes))return false;return true;}@Overridepublic String toString() {return "FofoDetails [fofoId=" + fofoId + ", emailId=" + emailId + ", roleTypes=" + roleTypes + "]";}}