@Override public int hashCode() { int result = accountId != null ? accountId.hashCode() : 0; result = 31 * result + (tenantId != null ? tenantId.hashCode() : 0); result = 31 * result + (userToken != null ? userToken.hashCode() : 0); result = 31 * result + (userName != null ? userName.hashCode() : 0); result = 31 * result + (callOrigin != null ? callOrigin.hashCode() : 0); result = 31 * result + (userType != null ? userType.hashCode() : 0); result = 31 * result + (reasonCode != null ? reasonCode.hashCode() : 0); result = 31 * result + (comments != null ? comments.hashCode() : 0); result = 31 * result + (createdDate != null ? createdDate.hashCode() : 0); return result; }
@Override public void writeExternal(final ObjectOutput out) throws IOException { out.writeLong(accountId == null ? 0 : accountId.getMostSignificantBits()); out.writeLong(accountId == null ? 0 : accountId.getLeastSignificantBits()); out.writeLong(tenantId == null ? 0 : tenantId.getMostSignificantBits()); out.writeLong(tenantId == null ? 0 : tenantId.getLeastSignificantBits()); out.writeLong(userToken.getMostSignificantBits()); out.writeLong(userToken.getLeastSignificantBits()); out.writeUTF(userName); out.writeUTF(callOrigin.name()); out.writeUTF(userType.name()); out.writeUTF(reasonCode); out.writeUTF(comments); }
@Override public void readExternal(final ObjectInput in) throws IOException, ClassNotFoundException { this.accountId = new UUID(in.readLong(), in.readLong()); if (this.accountId.getMostSignificantBits() == 0) { this.accountId = null; } this.tenantId = new UUID(in.readLong(), in.readLong()); if (this.tenantId.getMostSignificantBits() == 0) { this.tenantId = null; } this.userToken = new UUID(in.readLong(), in.readLong()); this.userName = in.readUTF(); this.callOrigin = CallOrigin.valueOf(in.readUTF()); this.userType = UserType.valueOf(in.readUTF()); this.reasonCode = in.readUTF(); this.comments = in.readUTF(); } }
@Override public int hashCode() { int result = super.hashCode(); result = 31 * result + (userToken != null ? userToken.hashCode() : 0); result = 31 * result + (createdBy != null ? createdBy.hashCode() : 0); result = 31 * result + (updatedBy != null ? updatedBy.hashCode() : 0); result = 31 * result + (callOrigin != null ? callOrigin.hashCode() : 0); result = 31 * result + (contextUserType != null ? contextUserType.hashCode() : 0); result = 31 * result + (reasonCode != null ? reasonCode.hashCode() : 0); result = 31 * result + (comments != null ? comments.hashCode() : 0); result = 31 * result + (createdDate != null ? createdDate.hashCode() : 0); result = 31 * result + (updatedDate != null ? updatedDate.hashCode() : 0); return result; } }
@Override public void writeExternal(final ObjectOutput out) throws IOException { out.writeLong(accountId == null ? 0 : accountId.getMostSignificantBits()); out.writeLong(accountId == null ? 0 : accountId.getLeastSignificantBits()); out.writeLong(tenantId == null ? 0 : tenantId.getMostSignificantBits()); out.writeLong(tenantId == null ? 0 : tenantId.getLeastSignificantBits()); out.writeLong(userToken.getMostSignificantBits()); out.writeLong(userToken.getLeastSignificantBits()); out.writeUTF(userName); out.writeUTF(callOrigin.name()); out.writeUTF(userType.name()); out.writeUTF(reasonCode); out.writeUTF(comments); }
@Override public void readExternal(final ObjectInput in) throws IOException, ClassNotFoundException { this.accountId = new UUID(in.readLong(), in.readLong()); if (this.accountId.getMostSignificantBits() == 0) { this.accountId = null; } this.tenantId = new UUID(in.readLong(), in.readLong()); if (this.tenantId.getMostSignificantBits() == 0) { this.tenantId = null; } this.userToken = new UUID(in.readLong(), in.readLong()); this.userName = in.readUTF(); this.callOrigin = CallOrigin.valueOf(in.readUTF()); this.userType = UserType.valueOf(in.readUTF()); this.reasonCode = in.readUTF(); this.comments = in.readUTF(); } }
@Override public int hashCode() { int result = accountId != null ? accountId.hashCode() : 0; result = 31 * result + (tenantId != null ? tenantId.hashCode() : 0); result = 31 * result + (userToken != null ? userToken.hashCode() : 0); result = 31 * result + (userName != null ? userName.hashCode() : 0); result = 31 * result + (callOrigin != null ? callOrigin.hashCode() : 0); result = 31 * result + (userType != null ? userType.hashCode() : 0); result = 31 * result + (reasonCode != null ? reasonCode.hashCode() : 0); result = 31 * result + (comments != null ? comments.hashCode() : 0); result = 31 * result + (createdDate != null ? createdDate.hashCode() : 0); return result; }
@Override public int hashCode() { int result = userToken != null ? userToken.hashCode() : 0; result = 31 * result + (userName != null ? userName.hashCode() : 0); result = 31 * result + (callOrigin != null ? callOrigin.hashCode() : 0); result = 31 * result + (userType != null ? userType.hashCode() : 0); result = 31 * result + (reasonCode != null ? reasonCode.hashCode() : 0); result = 31 * result + (comments != null ? comments.hashCode() : 0); result = 31 * result + (createdDate != null ? createdDate.hashCode() : 0); result = 31 * result + (updatedDate != null ? updatedDate.hashCode() : 0); result = 31 * result + (accountId != null ? accountId.hashCode() : 0); result = 31 * result + (tenantId != null ? tenantId.hashCode() : 0); return result; } }
@Override public int hashCode() { int result = super.hashCode(); result = 31 * result + (userToken != null ? userToken.hashCode() : 0); result = 31 * result + (createdBy != null ? createdBy.hashCode() : 0); result = 31 * result + (updatedBy != null ? updatedBy.hashCode() : 0); result = 31 * result + (callOrigin != null ? callOrigin.hashCode() : 0); result = 31 * result + (contextUserType != null ? contextUserType.hashCode() : 0); result = 31 * result + (reasonCode != null ? reasonCode.hashCode() : 0); result = 31 * result + (comments != null ? comments.hashCode() : 0); result = 31 * result + (createdDate != null ? createdDate.hashCode() : 0); result = 31 * result + (updatedDate != null ? updatedDate.hashCode() : 0); return result; } }