use of org.apache.commons.lang.builder.EqualsBuilder in project candlepin by candlepin.
the class CdnDTO method equals.
/**
* {@inheritDoc}
*/
@Override
public boolean equals(Object obj) {
if (obj == this) {
return true;
}
if (obj instanceof CdnDTO && super.equals(obj)) {
CdnDTO that = (CdnDTO) obj;
String thisCdnCertId = this.getCertificate() != null ? this.getCertificate().getId() : null;
String thatCdnCertId = that.getCertificate() != null ? that.getCertificate().getId() : null;
EqualsBuilder builder = new EqualsBuilder().append(this.getId(), that.getId()).append(this.getName(), that.getName()).append(this.getLabel(), that.getLabel()).append(thisCdnCertId, thatCdnCertId).append(this.getUrl(), that.getUrl());
return builder.isEquals();
}
return false;
}
use of org.apache.commons.lang.builder.EqualsBuilder in project candlepin by candlepin.
the class ProductData method equals.
@Override
public boolean equals(Object obj) {
if (obj == null || !(obj instanceof ProductData)) {
return false;
}
if (obj == this) {
return true;
}
ProductData that = (ProductData) obj;
EqualsBuilder builder = new EqualsBuilder().append(this.uuid, that.uuid).append(this.id, that.id).append(this.name, that.name).append(this.multiplier, that.multiplier).append(this.attributes, that.attributes).append(this.content, that.content).append(this.dependentProductIds, that.dependentProductIds).append(this.href, that.href).append(this.locked, that.locked);
return super.equals(obj) && builder.isEquals();
}
use of org.apache.commons.lang.builder.EqualsBuilder in project candlepin by candlepin.
the class Subscription method equals.
@Override
public boolean equals(Object obj) {
if (obj == null || !(obj instanceof Subscription)) {
return false;
}
if (obj == this) {
return true;
}
Subscription that = (Subscription) obj;
EqualsBuilder builder = new EqualsBuilder().append(this.id, that.id).append(this.owner, that.owner).append(this.product, that.product).append(this.derivedProduct, that.derivedProduct).append(this.providedProducts, that.providedProducts).append(this.derivedProvidedProducts, that.derivedProvidedProducts).append(this.branding, that.branding).append(this.quantity, that.quantity).append(this.startDate, that.startDate).append(this.endDate, that.endDate).append(this.contractNumber, that.contractNumber).append(this.accountNumber, that.accountNumber).append(this.modified, that.modified).append(this.orderNumber, that.orderNumber).append(this.upstreamPoolId, that.upstreamPoolId).append(this.upstreamEntitlementId, that.upstreamEntitlementId).append(this.upstreamConsumerId, that.upstreamConsumerId).append(this.cert, that.cert).append(this.cdn, that.cdn);
return super.equals(obj) && builder.isEquals();
}
use of org.apache.commons.lang.builder.EqualsBuilder in project coprhd-controller by CoprHD.
the class FibreChannelHBA method equalsFibreChannelHBA.
public boolean equalsFibreChannelHBA(FibreChannelHBA hba) {
if (hba == this) {
return true;
}
EqualsBuilder builder = new EqualsBuilder();
builder.append(nodeWWN, hba.nodeWWN);
builder.append(portWWN, hba.portWWN);
builder.append(instanceName, hba.instanceName);
return builder.isEquals();
}
use of org.apache.commons.lang.builder.EqualsBuilder in project coprhd-controller by CoprHD.
the class FibreChannelTargetMapping method equalsFibreChannelTargetMapping.
public boolean equalsFibreChannelTargetMapping(FibreChannelTargetMapping mapping) {
if (mapping == this) {
return true;
}
EqualsBuilder builder = new EqualsBuilder();
builder.append(nodeWWN, mapping.nodeWWN);
builder.append(portWWN, mapping.portWWN);
builder.append(fcpLun, mapping.fcpLun);
builder.append(scsiBus, mapping.scsiBus);
builder.append(scsiTarget, mapping.scsiTarget);
builder.append(scsiLun, mapping.scsiLun);
return builder.isEquals();
}
Aggregations