in stream/distributedlog/core/src/main/java/org/apache/distributedlog/thrift/BKDLConfigFormat.java [628:723]
public boolean equals(BKDLConfigFormat that) {
if (that == null)
return false;
boolean this_present_bkZkServers = true && this.isSetBkZkServers();
boolean that_present_bkZkServers = true && that.isSetBkZkServers();
if (this_present_bkZkServers || that_present_bkZkServers) {
if (!(this_present_bkZkServers && that_present_bkZkServers))
return false;
if (!this.bkZkServers.equals(that.bkZkServers))
return false;
}
boolean this_present_bkLedgersPath = true && this.isSetBkLedgersPath();
boolean that_present_bkLedgersPath = true && that.isSetBkLedgersPath();
if (this_present_bkLedgersPath || that_present_bkLedgersPath) {
if (!(this_present_bkLedgersPath && that_present_bkLedgersPath))
return false;
if (!this.bkLedgersPath.equals(that.bkLedgersPath))
return false;
}
boolean this_present_sanityCheckTxnID = true && this.isSetSanityCheckTxnID();
boolean that_present_sanityCheckTxnID = true && that.isSetSanityCheckTxnID();
if (this_present_sanityCheckTxnID || that_present_sanityCheckTxnID) {
if (!(this_present_sanityCheckTxnID && that_present_sanityCheckTxnID))
return false;
if (this.sanityCheckTxnID != that.sanityCheckTxnID)
return false;
}
boolean this_present_encodeRegionID = true && this.isSetEncodeRegionID();
boolean that_present_encodeRegionID = true && that.isSetEncodeRegionID();
if (this_present_encodeRegionID || that_present_encodeRegionID) {
if (!(this_present_encodeRegionID && that_present_encodeRegionID))
return false;
if (this.encodeRegionID != that.encodeRegionID)
return false;
}
boolean this_present_bkZkServersForReader = true && this.isSetBkZkServersForReader();
boolean that_present_bkZkServersForReader = true && that.isSetBkZkServersForReader();
if (this_present_bkZkServersForReader || that_present_bkZkServersForReader) {
if (!(this_present_bkZkServersForReader && that_present_bkZkServersForReader))
return false;
if (!this.bkZkServersForReader.equals(that.bkZkServersForReader))
return false;
}
boolean this_present_dlZkServersForWriter = true && this.isSetDlZkServersForWriter();
boolean that_present_dlZkServersForWriter = true && that.isSetDlZkServersForWriter();
if (this_present_dlZkServersForWriter || that_present_dlZkServersForWriter) {
if (!(this_present_dlZkServersForWriter && that_present_dlZkServersForWriter))
return false;
if (!this.dlZkServersForWriter.equals(that.dlZkServersForWriter))
return false;
}
boolean this_present_dlZkServersForReader = true && this.isSetDlZkServersForReader();
boolean that_present_dlZkServersForReader = true && that.isSetDlZkServersForReader();
if (this_present_dlZkServersForReader || that_present_dlZkServersForReader) {
if (!(this_present_dlZkServersForReader && that_present_dlZkServersForReader))
return false;
if (!this.dlZkServersForReader.equals(that.dlZkServersForReader))
return false;
}
boolean this_present_aclRootPath = true && this.isSetAclRootPath();
boolean that_present_aclRootPath = true && that.isSetAclRootPath();
if (this_present_aclRootPath || that_present_aclRootPath) {
if (!(this_present_aclRootPath && that_present_aclRootPath))
return false;
if (!this.aclRootPath.equals(that.aclRootPath))
return false;
}
boolean this_present_firstLogSegmentSeqNo = true && this.isSetFirstLogSegmentSeqNo();
boolean that_present_firstLogSegmentSeqNo = true && that.isSetFirstLogSegmentSeqNo();
if (this_present_firstLogSegmentSeqNo || that_present_firstLogSegmentSeqNo) {
if (!(this_present_firstLogSegmentSeqNo && that_present_firstLogSegmentSeqNo))
return false;
if (this.firstLogSegmentSeqNo != that.firstLogSegmentSeqNo)
return false;
}
boolean this_present_federatedNamespace = true && this.isSetFederatedNamespace();
boolean that_present_federatedNamespace = true && that.isSetFederatedNamespace();
if (this_present_federatedNamespace || that_present_federatedNamespace) {
if (!(this_present_federatedNamespace && that_present_federatedNamespace))
return false;
if (this.federatedNamespace != that.federatedNamespace)
return false;
}
return true;
}