All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.dell.cpsd.common.rabbitmq.context.RequestReplyKey Maven / Gradle / Ivy

There is a newer version: 2.2.0
Show newest version
/**
 * Copyright © 2017 Dell Inc. or its subsidiaries.  All Rights Reserved.
 * Dell EMC Confidential/Proprietary Information
 */


package com.dell.cpsd.common.rabbitmq.context;

/**
 * 

* Copyright © 2017 Dell Inc. or its subsidiaries. All Rights Reserved. * Dell EMC Confidential/Proprietary Information *

* * @since SINCE-TBD */ public class RequestReplyKey { private Class request; private Class reply; public RequestReplyKey(Class request, Class reply) { this.request = request; this.reply = reply; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } RequestReplyKey that = (RequestReplyKey) o; if (request != null ? !request.equals(that.request) : that.request != null) { return false; } return reply != null ? reply.equals(that.reply) : that.reply == null; } @Override public int hashCode() { int result = request != null ? request.hashCode() : 0; result = 31 * result + (reply != null ? reply.hashCode() : 0); return result; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy