@Override public boolean equals(Object obj) { if (obj == this) { return true; } if (obj == null) { return false; } // be careful with inheritance else if (obj.getClass().equals(this.getClass())) { Account other = (Account) obj; return ((this.accountId == other.accountId) || (this.accountId.equals(other.accountId))) && ((this.name == other.name) || (this.name.equals(other.name))) && ((this.email == other.email) || (this.email.equals(other.email))) && (this.emailVerified == other.emailVerified) && (this.disabled == other.disabled) && ((this.profilePhotoUrl == other.profilePhotoUrl) || (this.profilePhotoUrl != null && this.profilePhotoUrl.equals(other.profilePhotoUrl))) ; } else { return false; } }
@Override public boolean equals(Object obj) { if (obj == this) { return true; } if (obj == null) { return false; } // be careful with inheritance else if (obj.getClass().equals(this.getClass())) { BasicAccount other = (BasicAccount) obj; return ((this.accountId == other.accountId) || (this.accountId.equals(other.accountId))) && ((this.name == other.name) || (this.name.equals(other.name))) && ((this.email == other.email) || (this.email.equals(other.email))) && (this.emailVerified == other.emailVerified) && (this.disabled == other.disabled) && (this.isTeammate == other.isTeammate) && ((this.profilePhotoUrl == other.profilePhotoUrl) || (this.profilePhotoUrl != null && this.profilePhotoUrl.equals(other.profilePhotoUrl))) && ((this.teamMemberId == other.teamMemberId) || (this.teamMemberId != null && this.teamMemberId.equals(other.teamMemberId))) ; } else { return false; } }
@Override public boolean equals(Object obj) { if (obj == this) { return true; } if (obj == null) { return false; } // be careful with inheritance else if (obj.getClass().equals(this.getClass())) { TeamMemberProfile other = (TeamMemberProfile) obj; return ((this.teamMemberId == other.teamMemberId) || (this.teamMemberId.equals(other.teamMemberId))) && ((this.email == other.email) || (this.email.equals(other.email))) && (this.emailVerified == other.emailVerified) && ((this.status == other.status) || (this.status.equals(other.status))) && ((this.name == other.name) || (this.name.equals(other.name))) && ((this.membershipType == other.membershipType) || (this.membershipType.equals(other.membershipType))) && ((this.groups == other.groups) || (this.groups.equals(other.groups))) && ((this.memberFolderId == other.memberFolderId) || (this.memberFolderId.equals(other.memberFolderId))) && ((this.externalId == other.externalId) || (this.externalId != null && this.externalId.equals(other.externalId))) && ((this.accountId == other.accountId) || (this.accountId != null && this.accountId.equals(other.accountId))) && ((this.joinedOn == other.joinedOn) || (this.joinedOn != null && this.joinedOn.equals(other.joinedOn))) && ((this.persistentId == other.persistentId) || (this.persistentId != null && this.persistentId.equals(other.persistentId))) && ((this.isDirectoryRestricted == other.isDirectoryRestricted) || (this.isDirectoryRestricted != null && this.isDirectoryRestricted.equals(other.isDirectoryRestricted))) ; } else { return false; } }
@Override public boolean equals(Object obj) { if (obj == this) { return true; } if (obj == null) { return false; } // be careful with inheritance else if (obj.getClass().equals(this.getClass())) { MemberProfile other = (MemberProfile) obj; return ((this.teamMemberId == other.teamMemberId) || (this.teamMemberId.equals(other.teamMemberId))) && ((this.email == other.email) || (this.email.equals(other.email))) && (this.emailVerified == other.emailVerified) && ((this.status == other.status) || (this.status.equals(other.status))) && ((this.name == other.name) || (this.name.equals(other.name))) && ((this.membershipType == other.membershipType) || (this.membershipType.equals(other.membershipType))) && ((this.externalId == other.externalId) || (this.externalId != null && this.externalId.equals(other.externalId))) && ((this.accountId == other.accountId) || (this.accountId != null && this.accountId.equals(other.accountId))) && ((this.joinedOn == other.joinedOn) || (this.joinedOn != null && this.joinedOn.equals(other.joinedOn))) && ((this.persistentId == other.persistentId) || (this.persistentId != null && this.persistentId.equals(other.persistentId))) && ((this.isDirectoryRestricted == other.isDirectoryRestricted) || (this.isDirectoryRestricted != null && this.isDirectoryRestricted.equals(other.isDirectoryRestricted))) ; } else { return false; } }
FullAccount other = (FullAccount) obj; return ((this.accountId == other.accountId) || (this.accountId.equals(other.accountId))) && ((this.name == other.name) || (this.name.equals(other.name))) && ((this.email == other.email) || (this.email.equals(other.email))) && (this.emailVerified == other.emailVerified)