in client/src/main/java/org/apache/qpid/client/AMQDestination.java [674:731]
public boolean equals(Object o)
{
if (this == o)
{
return true;
}
if (!(o instanceof AMQDestination))
{
return false;
}
final AMQDestination that = (AMQDestination) o;
if (_destSyntax != that.getDestSyntax())
{
return false;
}
if (_destSyntax == DestSyntax.ADDR)
{
if (_addressType != that.getAddressType())
{
return false;
}
if (!_name.equals(that.getAddressName()))
{
return false;
}
if (_subject == null)
{
if (that.getSubject() != null)
{
return false;
}
}
else if (!_subject.equals(that.getSubject()))
{
return false;
}
}
else
{
if (!_exchangeClass.equals(that._exchangeClass))
{
return false;
}
if (!_exchangeName.equals(that._exchangeName))
{
return false;
}
if ((_queueName == null && that._queueName != null) ||
(_queueName != null && !_queueName.equals(that._queueName)))
{
return false;
}
}
return true;
}