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.qcadoo.mes.technologies.tree.builder.api.ItemWithQuantity.java
@Override public boolean equals(final Object obj) { if (this == obj) { return true; }//from www . j a v a 2 s . com if (!(obj instanceof ItemWithQuantity)) { return false; } ItemWithQuantity<?> other = (ItemWithQuantity<?>) obj; return new EqualsBuilder().append(item, other.item).append(quantity, other.quantity).isEquals(); }
From source file:com.hp.ov.sdk.dto.serverhardwaretype.PhysicalPort.java
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj instanceof PhysicalPort) { PhysicalPort that = (PhysicalPort) obj; return new EqualsBuilder().append(mapping, that.mapping).append(maxSpeedMbps, that.maxSpeedMbps) .append(maxVFsSupported, that.maxVFsSupported).append(number, that.number) .append(physicalFunctionCount, that.physicalFunctionCount).append(type, that.type).isEquals(); }// www . j a v a2 s . co m return false; }
From source file:io.cloudslang.lang.entities.CompilationArtifact.java
@Override public boolean equals(Object o) { if (this == o) { return true; }/* ww w. j av a 2 s.c om*/ if (o == null || getClass() != o.getClass()) { return false; } CompilationArtifact that = (CompilationArtifact) o; return new EqualsBuilder().append(executionPlan, that.executionPlan).append(dependencies, that.dependencies) .append(inputs, that.inputs).append(systemProperties, that.systemProperties).isEquals(); }
From source file:info.carlwithak.mpxg2.model.parameters.FrequencyRate.java
@Override public boolean equals(Object obj) { if (obj == null) { return false; }//from w w w . j a v a 2s. com if (getClass() != obj.getClass()) { return false; } final FrequencyRate other = (FrequencyRate) obj; if (this.frequency == null || other.frequency == null) { return this.frequency == null && other.frequency == null; } return new EqualsBuilder().append(this.frequency.doubleValue(), other.frequency.doubleValue()).isEquals(); }
From source file:com.deegeu.facebook.messenger.model.receive.Sender.java
@Override public boolean equals(Object other) { if (other == this) { return true; }// w ww . java 2 s. co m if ((other instanceof Sender) == false) { return false; } Sender rhs = ((Sender) other); return new EqualsBuilder().append(id, rhs.id).isEquals(); }
From source file:io.cloudslang.lang.entities.LoopStatement.java
@Override public boolean equals(Object o) { if (this == o) { return true; }// w w w . ja v a 2 s. c o m if (o == null || getClass() != o.getClass()) { return false; } LoopStatement that = (LoopStatement) o; return new EqualsBuilder().append(expression, that.expression).isEquals(); }
From source file:com.javaetmoi.core.persistence.hibernate.domain.Project.java
@Override public boolean equals(Object obj) { if (this == obj) { return true; }/* ww w .ja v a 2s.c o m*/ if (obj == null) { return false; } if (!Project.class.isAssignableFrom(obj.getClass())) { return false; } Project other = (Project) obj; // Do not compare the members properties in order to avoid recursive equals stack call on // bi-directional relationship return new EqualsBuilder().append(id, other.id).append(this.name, other.name).isEquals(); }
From source file:com.newlandframework.avatarmq.msg.Message.java
public boolean equals(Object obj) { boolean result = false; if (obj != null && Message.class.isAssignableFrom(obj.getClass())) { Message msg = (Message) obj;/*from ww w. ja v a 2 s . co m*/ result = new EqualsBuilder().append(topic, msg.getTopic()).append(body, msg.getBody()).isEquals(); } return result; }
From source file:ddf.catalog.impl.filter.DivisibleByFunction.java
@Override public boolean equals(Object obj) { if (obj == null) { return false; }//from w w w .j a v a2 s. c om if (obj == this) { return true; } if (obj.getClass() != getClass()) { return false; } DivisibleByFunction rhs = (DivisibleByFunction) obj; return new EqualsBuilder().appendSuper(super.equals(obj)).append(this.name, rhs.name) .append(this.params, rhs.params).append(this.fallback, rhs.fallback) .append(this.functionName, rhs.functionName).isEquals(); }
From source file:com.jdom.mediadownloader.series.domain.SeriesNotification.java
@Override public boolean equals(Object other) { if (other instanceof SeriesNotification) { SeriesNotification that = (SeriesNotification) other; EqualsBuilder builder = new EqualsBuilder(); builder.append(this.getSeries(), that.getSeries()); builder.append(this.getUser(), that.getUser()); return builder.isEquals(); }/*from w ww.j a v a 2 s . c o m*/ return false; }