in activemq-cpp/src/main/activemq/commands/JournalTopicAck.cpp [130:176]
bool JournalTopicAck::equals(const DataStructure* value) const {
if (this == value) {
return true;
}
const JournalTopicAck* valuePtr = dynamic_cast<const JournalTopicAck*>(value);
if (valuePtr == NULL || value == NULL) {
return false;
}
if (this->getDestination() != NULL) {
if (!this->getDestination()->equals(valuePtr->getDestination().get())) {
return false;
}
} else if (valuePtr->getDestination() != NULL) {
return false;
}
if (this->getMessageId() != NULL) {
if (!this->getMessageId()->equals(valuePtr->getMessageId().get())) {
return false;
}
} else if (valuePtr->getMessageId() != NULL) {
return false;
}
if (this->getMessageSequenceId() != valuePtr->getMessageSequenceId()) {
return false;
}
if (this->getSubscritionName() != valuePtr->getSubscritionName()) {
return false;
}
if (this->getClientId() != valuePtr->getClientId()) {
return false;
}
if (this->getTransactionId() != NULL) {
if (!this->getTransactionId()->equals(valuePtr->getTransactionId().get())) {
return false;
}
} else if (valuePtr->getTransactionId() != NULL) {
return false;
}
if (!BaseDataStructure::equals(value)) {
return false;
}
return true;
}