![JAR search and dependency download from the Maven repository](/logo.png)
com.dell.cpsd.common.rabbitmq.registration.notifier.model.BindingDataDto Maven / Gradle / Ivy
/**
* Copyright © 2017 Dell Inc. or its subsidiaries. All Rights Reserved.
* Dell EMC Confidential/Proprietary Information
*/
package com.dell.cpsd.common.rabbitmq.registration.notifier.model;
/**
*
* Copyright © 2017 Dell Inc. or its subsidiaries. All Rights Reserved.
* Dell EMC Confidential/Proprietary Information
*
*
* @since SINCE-TBD
*/
public class BindingDataDto
{
private String queueName;
private String routingKey;
public BindingDataDto(String queueName, String routingKey)
{
this.queueName = queueName;
this.routingKey = routingKey;
}
public String getQueueName()
{
return queueName;
}
public String getRoutingKey()
{
return routingKey;
}
@Override
public boolean equals(Object o)
{
if (this == o)
{
return true;
}
if (o == null || getClass() != o.getClass())
{
return false;
}
BindingDataDto that = (BindingDataDto) o;
if (queueName != null ? !queueName.equals(that.queueName) : that.queueName != null)
{
return false;
}
return routingKey != null ? routingKey.equals(that.routingKey) : that.routingKey == null;
}
@Override
public int hashCode()
{
int result = queueName != null ? queueName.hashCode() : 0;
result = 31 * result + (routingKey != null ? routingKey.hashCode() : 0);
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy