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:de.bstreit.java.oscr.business.offers.AbstractOffer.java
@Override protected final void additionalEqualsForSubclasses(EqualsBuilder builder, AbstractOffer<OFFERED_ITEM> obj) { builder.append(offeredItem, obj.offeredItem); }
From source file:com.hypersocket.resource.Resource.java
protected void doEqualsOnKeys(EqualsBuilder builder, Object obj) { super.doEqualsOnKeys(builder, obj); builder.append(name, ((Resource) obj).getName()); }
From source file:de.bstreit.java.oscr.business.products.AbstractSalesItem.java
@Override protected final void additionalEqualsForSubclasses(EqualsBuilder builder, AbstractSalesItem obj) { builder.append(name, obj.name); }
From source file:ca.uhn.fhir.model.api.BasePrimitive.java
@Override public boolean equals(Object theObj) { if (theObj == null) { return false; }//from w ww . ja va2 s. c o m if (!(theObj.getClass() == getClass())) { return false; } BasePrimitive<?> o = (BasePrimitive<?>) theObj; EqualsBuilder b = new EqualsBuilder(); b.append(getValue(), o.getValue()); return b.isEquals(); }
From source file:com.jdom.mediadownloader.domain.User.java
@Override public boolean equals(Object other) { if (other instanceof User) { User that = (User) other;// w w w.ja v a2 s. c o m EqualsBuilder builder = new EqualsBuilder(); builder.append(this.getName(), that.getName()); builder.append(this.getEmailAddress(), that.getEmailAddress()); return builder.isEquals(); } return false; }
From source file:ca.uhn.fhir.jpa.entity.ResourceIndexedSearchParamCoords.java
@Override public boolean equals(Object theObj) { if (this == theObj) { return true; }/*w ww .j a v a 2s . com*/ if (theObj == null) { return false; } if (!(theObj instanceof ResourceIndexedSearchParamCoords)) { return false; } ResourceIndexedSearchParamCoords obj = (ResourceIndexedSearchParamCoords) theObj; EqualsBuilder b = new EqualsBuilder(); b.append(getParamName(), obj.getParamName()); b.append(getResource(), obj.getResource()); b.append(getLatitude(), obj.getLatitude()); b.append(getLongitude(), obj.getLongitude()); return b.isEquals(); }
From source file:ca.uhn.fhir.jpa.entity.ResourceIndexedSearchParamToken.java
@Override public boolean equals(Object theObj) { if (this == theObj) { return true; }/*from w ww . j ava 2 s . co m*/ if (theObj == null) { return false; } if (!(theObj instanceof ResourceIndexedSearchParamToken)) { return false; } ResourceIndexedSearchParamToken obj = (ResourceIndexedSearchParamToken) theObj; EqualsBuilder b = new EqualsBuilder(); b.append(getParamName(), obj.getParamName()); b.append(getResource(), obj.getResource()); b.append(getSystem(), obj.getSystem()); b.append(getValue(), obj.getValue()); return b.isEquals(); }
From source file:com.github.jgility.core.planning.Backlog.java
@SuppressWarnings("unchecked") @Override// www . j a v a 2 s . c o m public boolean equals(Object obj) { if (obj instanceof Backlog) { Backlog<T> backlog = (Backlog<T>) obj; EqualsBuilder builder = new EqualsBuilder(); builder.append(requirements, backlog.requirements); return builder.isEquals(); } return false; }
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 w w . j a v a 2s . c o m*/ return false; }
From source file:br.com.autonomiccs.apacheCloudStack.client.beans.ApacheCloudStackUser.java
@Override public boolean equals(Object obj) { boolean isObjInstanceOfThisClass = obj instanceof ApacheCloudStackUser; if (!isObjInstanceOfThisClass) { return false; }/*w w w.j av a2s. com*/ ApacheCloudStackUser that = (ApacheCloudStackUser) obj; EqualsBuilder equalsBuilder = new EqualsBuilder(); equalsBuilder.append(this.username, that.username); equalsBuilder.append(this.password, that.password); equalsBuilder.append(this.domain, that.domain); equalsBuilder.append(this.secretKey, that.secretKey); equalsBuilder.append(this.apiKey, that.apiKey); return equalsBuilder.isEquals(); }