List of usage examples for org.apache.commons.lang3.builder EqualsBuilder append
public EqualsBuilder append(final boolean[] lhs, final boolean[] rhs)
Deep comparison of array of boolean
.
From source file:ca.uhn.fhir.jpa.entity.ResourceIndexedSearchParamQuantity.java
@Override public boolean equals(Object theObj) { if (this == theObj) { return true; }/* ww w. ja va2 s.co m*/ if (theObj == null) { return false; } if (!(theObj instanceof ResourceIndexedSearchParamQuantity)) { return false; } ResourceIndexedSearchParamQuantity obj = (ResourceIndexedSearchParamQuantity) theObj; EqualsBuilder b = new EqualsBuilder(); b.append(getParamName(), obj.getParamName()); b.append(getResource(), obj.getResource()); b.append(getSystem(), obj.getSystem()); b.append(getUnits(), obj.getUnits()); b.append(getValue(), obj.getValue()); return b.isEquals(); }
From source file:com.google.code.siren4j.component.impl.ActionImpl.java
@Override public boolean equals(Object obj) { if (this == obj) { return true; }/* ww w .j a va2 s . c om*/ if (obj == null) { return false; } if (!(obj instanceof ActionImpl)) { return false; } ActionImpl other = (ActionImpl) obj; EqualsBuilder equalsBuilder = new EqualsBuilder(); equalsBuilder.append(name, other.name); return equalsBuilder.isEquals(); }
From source file:com.norconex.committer.core.FileAddOperation.java
@Override public boolean equals(Object obj) { if (this == obj) { return true; }//from w ww . j a v a 2 s. c om if (obj == null) { return false; } if (!(obj instanceof FileAddOperation)) { return false; } FileAddOperation other = (FileAddOperation) obj; EqualsBuilder equalsBuilder = new EqualsBuilder(); equalsBuilder.append(contentFile, other.contentFile); equalsBuilder.append(metadata, other.metadata); return equalsBuilder.isEquals(); }
From source file:com.aestheticsw.jobkeywords.service.termextractor.domain.SearchParameters.java
@Override public boolean equals(Object other) { if (other == null) { return false; }//from ww w.j ava2 s.co m if (other == this) { return true; } if (other.getClass() != getClass()) { return false; } SearchParameters otherSearchParameters = (SearchParameters) other; // Can't cache the EqualsBuilder because it depends on the argument 'otherSearchParameters' EqualsBuilder equalsBuilder = new EqualsBuilder(); equalsBuilder.append(queryKey, otherSearchParameters.queryKey) .append(jobCount, otherSearchParameters.jobCount).append(start, otherSearchParameters.start) .append(radius, otherSearchParameters.radius).append(sort, otherSearchParameters.sort); return equalsBuilder.isEquals(); }
From source file:com.jdom.mediadownloader.series.domain.SeriesDownload.java
@Override public boolean equals(Object obj) { if (obj instanceof SeriesDownload) { SeriesDownload other = (SeriesDownload) obj; EqualsBuilder builder = new EqualsBuilder(); builder.append(this.entity, other.entity); builder.append(this.season, other.season); builder.append(this.episode, other.episode); builder.append(this.time, other.time); return builder.isEquals(); }//w w w . ja v a2 s .com return false; }
From source file:com.aestheticsw.jobkeywords.service.termextractor.domain.QueryKey.java
@Override public boolean equals(Object other) { if (other == null) { return false; }/*from w w w. j av a2 s. com*/ if (other == this) { return true; } if (other.getClass() != getClass()) { return false; } QueryKey otherQueryKey = (QueryKey) other; EqualsBuilder builder = new EqualsBuilder(); builder.append(query, otherQueryKey.query).append(locale, otherQueryKey.locale).append(city, otherQueryKey.city); return builder.isEquals(); }
From source file:com.daugherty.e2c.domain.Buyer.java
@Override protected void addEntityFieldsToEqualsBuilder(EqualsBuilder builder, Object obj) { super.addEntityFieldsToEqualsBuilder(builder, obj); Buyer rhs = (Buyer) obj;/* ww w . j a va 2s .c o m*/ builder.append(importLicenseRefId, rhs.importLicenseRefId); }
From source file:com.nmote.smpp.EnquireLinkRespPDU.java
/** * Checks if <code>o</code> and this object are equal. * * @return true if objects are equal, false otherwise *//*from w w w . j av a 2 s. co m*/ public boolean equals(Object o) { boolean result; if (o instanceof EnquireLinkRespPDU) { EnquireLinkRespPDU p = (EnquireLinkRespPDU) o; EqualsBuilder b = new EqualsBuilder(); b.append(p.getSequence(), getSequence()); b.append(p.getStatus(), getStatus()); // Appending mandatory parameters // Appending optional parameters b.append(p.getParameters(), getParameters()); result = b.isEquals(); } else { result = false; } return result; }
From source file:com.github.jgility.core.planning.Release.java
@Override public boolean equals(Object obj) { if (obj instanceof Release) { Release plan = (Release) obj;/*from w ww. j a va 2s . c o m*/ EqualsBuilder builder = new EqualsBuilder(); builder.append(iterationList, plan.iterationList); return builder.isEquals() && super.equals(obj); } return false; }
From source file:com.nmote.smpp.CancelSmRespPDU.java
/** * Checks if <code>o</code> and this object are equal. * * @return true if objects are equal, false otherwise *//*w w w. j a v a 2 s . c o m*/ public boolean equals(Object o) { boolean result; if (o instanceof CancelSmRespPDU) { CancelSmRespPDU p = (CancelSmRespPDU) o; EqualsBuilder b = new EqualsBuilder(); b.append(p.getSequence(), getSequence()); b.append(p.getStatus(), getStatus()); // Appending mandatory parameters // Appending optional parameters b.append(p.getParameters(), getParameters()); result = b.isEquals(); } else { result = false; } return result; }