List of usage examples for org.apache.commons.lang3.builder EqualsBuilder EqualsBuilder
public EqualsBuilder()
Constructor for EqualsBuilder.
Starts off assuming that equals is true
.
From source file:com.samanamp.Node.java
@Override public boolean equals(Object obj) { if (obj == null) return false; if (obj == this) return true; if (!(obj instanceof Node)) return false; Node node = (Node) obj; return new EqualsBuilder(). // if deriving: appendSuper(super.equals(obj)). append(name, node.name).isEquals(); }
From source file:com.mycsense.carbondb.domain.Dimension.java
@Override public boolean equals(Object obj) { // Alternative: use Guava (from Google) if (!(obj instanceof Dimension)) return false; if (obj == this) return true; Dimension rhs = (Dimension) obj; return new EqualsBuilder().append(keywords, rhs.keywords).isEquals(); }
From source file:com.hp.ov.sdk.dto.StoragePathTemplate.java
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null || getClass() != obj.getClass()) return false; StoragePathTemplate that = (StoragePathTemplate) obj; return new EqualsBuilder().append(connectionId, that.connectionId).append(isEnabled, that.isEnabled) .append(storageTargetType, that.storageTargetType).append(storageTargets, that.storageTargets) .isEquals();/* ww w .ja v a 2s. co m*/ }
From source file:ch.aonyx.broker.ib.api.fa.FinancialAdvisorConfigurationRequest.java
@Override public boolean equals(final Object obj) { if (obj == null) { return false; }//from w w w . ja va 2 s .com if (obj == this) { return true; } if (obj.getClass() != getClass()) { return false; } final FinancialAdvisorConfigurationRequest rhs = (FinancialAdvisorConfigurationRequest) obj; return new EqualsBuilder().append(dataType, rhs.dataType).isEquals(); }
From source file:gr.abiss.calipso.model.entities.AbstractMetadatum.java
@Override public boolean equals(Object obj) { if (null == obj) { return false; }/*from w ww .j a va 2 s . c o m*/ if (this == obj) { return true; } if (!AbstractMetadatum.class.isInstance(obj)) { return false; } @SuppressWarnings("rawtypes") AbstractMetadatum that = (AbstractMetadatum) obj; return new EqualsBuilder().append(this.getSubject(), that.getSubject()) .append(this.getPredicate(), that.getPredicate()).isEquals(); }
From source file:io.lavagna.model.CardLabel.java
@Override public boolean equals(Object obj) { if (obj == null || !(obj instanceof CardLabel)) { return false; }// w w w. j av a 2s .co m CardLabel other = (CardLabel) obj; return new EqualsBuilder().append(id, other.id).append(projectId, other.projectId) .append(unique, other.unique).append(type, other.type).append(domain, other.domain) .append(name, other.name).append(color, other.color).isEquals(); }
From source file:model.container.TestCoverageContainer.java
@Override public boolean equals(Object obj) { if (!(obj instanceof TestCoverageContainer)) return false; if (obj == this) return true; TestCoverageContainer container = (TestCoverageContainer) obj; return new EqualsBuilder().append(this.className, container.getClassName()).isEquals(); }
From source file:com.qcadoo.mes.deviationCausesReporting.domain.DeviationSummary.java
@Override public boolean equals(final Object obj) { if (obj == null) { return false; }//w w w . j a va2 s. c o m if (obj == this) { return true; } if (obj.getClass() != getClass()) { return false; } DeviationSummary rhs = (DeviationSummary) obj; return new EqualsBuilder().append(this.deviationCause, rhs.deviationCause).append(this.date, rhs.date) .append(this.orderNumber, rhs.orderNumber).append(this.productNumber, rhs.productNumber) .append(this.comment, rhs.comment).isEquals(); }
From source file:com.romeikat.datamessie.core.domain.entity.impl.FooEntityWithoutIdAndVersion.java
@Override public boolean equals(final Object other) { if (other == null) { return false; }/*from ww w .j a v a 2 s . c o m*/ if (other == this) { return true; } if (other.getClass() != getClass()) { return false; } final FooEntityWithoutIdAndVersion otherBar = (FooEntityWithoutIdAndVersion) other; final boolean equals = new EqualsBuilder().append(name, otherBar.name).isEquals(); return equals; }
From source file:com.mycsense.carbondb.domain.Unit.java
@Override public boolean equals(Object obj) { // Alternative: use Guava (from Google) if (!(obj instanceof Unit)) return false; if (obj == this) return true; Unit rhs = (Unit) obj;/* w w w . jav a 2s .c om*/ return new EqualsBuilder().append(id, rhs.id).isEquals(); }