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.ibasco.agql.core.reflect.types.CollectionParameterizedType.java
@Override public boolean equals(Object obj) { return new EqualsBuilder().append(this, obj).isEquals(); }
From source file:com.mingo.domain.Comment.java
/** * {@inheritDoc}//from www . ja va 2 s . co m */ @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof Comment)) { return false; } Comment that = (Comment) o; return new EqualsBuilder().appendSuper(super.equals(that)).append(moderationStatus, that.moderationStatus) .append(author, that.author).append(created, that.created).append(commentBody, that.commentBody) .isEquals(); }
From source file:com.riversoforion.acheron.patterns.NameValuePair.java
@Override public boolean equals(Object obj) { if (obj == null) { return false; }/* www. jav a 2 s. c o m*/ if (obj == this) { return true; } if (obj.getClass() != getClass()) { return false; } NameValuePair<?, ?> other = (NameValuePair<?, ?>) obj; return new EqualsBuilder().append(this.name, other.name).append(this.value, other.value).isEquals(); }
From source file:net.sf.dynamicreports.design.base.style.DRDesignConditionalStyle.java
@Override public boolean equals(Object obj) { EqualsBuilder equalsBuilder = new EqualsBuilder().appendSuper(super.equals(obj)); if (equalsBuilder.isEquals()) { DRDesignConditionalStyle o = (DRDesignConditionalStyle) obj; equalsBuilder.append(conditionExpression, o.conditionExpression).append(dataset, o.dataset); }//from w ww .j a v a 2s. c o m return equalsBuilder.isEquals(); }
From source file:io.netlibs.bgp.protocol.attributes.OriginPathAttribute.java
@Override protected boolean subclassEquals(final PathAttribute obj) { final OriginPathAttribute o = (OriginPathAttribute) obj; return (new EqualsBuilder()).append(this.getOrigin(), o.getOrigin()).isEquals(); }
From source file:ch.uzh.ifi.seal.changedistiller.model.entities.AbstractHistory.java
@Override public final boolean equals(Object obj) { if (this == obj) { return true; }/* w w w .j a v a2 s. com*/ if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } AbstractHistory other = (AbstractHistory) obj; return new EqualsBuilder().append(getUniqueName(), other.getUniqueName()) .append(new ArrayList<StructureEntityVersion>(getVersions()), new ArrayList<StructureEntityVersion>(other.getVersions())) .isEquals(); }
From source file:com.hp.ov.sdk.dto.SsoUrlData.java
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null || getClass() != obj.getClass()) return false; SsoUrlData that = (SsoUrlData) obj;// w ww . j a va 2 s. com return new EqualsBuilder().append(attributes, that.attributes).append(ssoUrl, that.ssoUrl).isEquals(); }
From source file:com.hp.ov.sdk.dto.rack.RackMount.java
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj instanceof RackMount) { RackMount that = (RackMount) obj; return new EqualsBuilder().append(location, that.location).append(mountUri, that.mountUri) .append(relativeOrder, that.relativeOrder).append(topUSlot, that.topUSlot) .append(uHeight, that.uHeight).isEquals(); }/*from w w w . j a v a2 s. c o m*/ return false; }
From source file:com.galenframework.ide.model.Size.java
@Override public boolean equals(Object obj) { if (obj == null) { return false; } else if (obj == this) { return true; } else if (!(obj instanceof Size)) { return false; } else {/* w ww . j av a 2s. co m*/ Size rhs = (Size) obj; return new EqualsBuilder().append(rhs.width, this.width).append(rhs.height, this.height).isEquals(); } }
From source file:de.qaware.chronix.timeseries.dts.Point.java
@Override public boolean equals(Object obj) { if (obj == null) { return false; }// w ww . jav a2 s .c o m if (obj == this) { return true; } if (obj.getClass() != getClass()) { return false; } Point rhs = (Point) obj; return new EqualsBuilder().append(this.index, rhs.index).append(this.timestamp, rhs.timestamp) .append(this.value, rhs.value).isEquals(); }