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.ResourceIndexedSearchParamDate.java
@Override public boolean equals(Object theObj) { if (this == theObj) { return true; }// w ww . j a v a2 s . co m if (theObj == null) { return false; } if (!(theObj instanceof ResourceIndexedSearchParamDate)) { return false; } ResourceIndexedSearchParamDate obj = (ResourceIndexedSearchParamDate) theObj; EqualsBuilder b = new EqualsBuilder(); b.append(getParamName(), obj.getParamName()); b.append(getResource(), obj.getResource()); b.append(getValueHigh(), obj.getValueHigh()); b.append(getValueLow(), obj.getValueLow()); return b.isEquals(); }
From source file:com.github.jgility.core.requirement.ImplementableStory.java
@Override public boolean equals(Object obj) { if (obj instanceof ImplementableStory) { ImplementableStory story = (ImplementableStory) obj; EqualsBuilder builder = new EqualsBuilder(); builder.append(implementState, story.implementState); builder.append(team, story.team); return builder.isEquals() && super.equals(obj); }/*from www.j a v a 2s. c o m*/ return false; }
From source file:com.invariantproperties.project.student.domain.PersistentObject.java
@Override public boolean equals(Object o) { if (!(o instanceof PersistentObject)) { return false; }//w w w . j av a2 s . c om PersistentObject po = (PersistentObject) o; EqualsBuilder eq = new EqualsBuilder(); eq.append(uuid, po.getUuid()); return eq.isEquals(); }
From source file:com.bazaarvoice.seo.sdk.model.BVParameters.java
@Override public boolean equals(Object obj) { if (obj == null) { return false; }// w ww . jav a 2 s. co m if (obj == this) { return true; } if (!(obj instanceof BVParameters)) { return false; } BVParameters rhs = (BVParameters) obj; EqualsBuilder eqBuilder = new EqualsBuilder(); eqBuilder.append(getBaseURI(), rhs.getBaseURI()).append(getContentType(), rhs.getContentType()) .append(getPageURI(), rhs.getPageURI()).append(getSubjectId(), rhs.getSubjectId()) .append(getSubjectType(), rhs.getSubjectType()).append(getUserAgent(), rhs.getUserAgent()); return eqBuilder.isEquals(); }
From source file:com.hypersocket.local.LocalUserCredentials.java
protected void doEqualsOnKeys(EqualsBuilder builder, Object obj) { LocalUserCredentials creds = (LocalUserCredentials) obj; builder.append(user.getId(), creds.getUser().getId()); }
From source file:com.amazon.janusgraph.diskstorage.dynamodb.DynamoDBDelegate.java
public static boolean areGSIsSameConfiguration(GlobalSecondaryIndexDescription g1, GlobalSecondaryIndexDescription g2) { if (g1 == null ^ g2 == null) { return false; }/*from w w w . ja v a2 s . co m*/ if (g1 == g2) { return true; } final EqualsBuilder builder = new EqualsBuilder(); builder.append(g1.getIndexName(), g2.getIndexName()); builder.append(g1.getKeySchema(), g2.getKeySchema()); builder.append(g1.getProjection().getProjectionType(), g2.getProjection().getProjectionType()); builder.append(g1.getProvisionedThroughput().getReadCapacityUnits(), g2.getProvisionedThroughput().getReadCapacityUnits()); builder.append(g1.getProvisionedThroughput().getWriteCapacityUnits(), g2.getProvisionedThroughput().getWriteCapacityUnits()); final Set<String> projectionNonKeyAttributesG1 = g1.getProjection().getNonKeyAttributes() == null ? Collections.<String>emptySet() : new HashSet<String>(g1.getProjection().getNonKeyAttributes()); final Set<String> projectionNonKeyAttributesG2 = g2.getProjection().getNonKeyAttributes() == null ? Collections.<String>emptySet() : new HashSet<String>(g2.getProjection().getNonKeyAttributes()); builder.append(projectionNonKeyAttributesG1, projectionNonKeyAttributesG2); return builder.build().booleanValue(); }
From source file:com.evrythng.thng.resource.model.store.Property.java
@Override public boolean equals(final Object other) { if (other == null || other.getClass() != getClass()) { return false; }// w ww. ja v a 2s .c o m Property<VALUE_TYPE> that = (Property<VALUE_TYPE>) other; EqualsBuilder equals = new EqualsBuilder(); equals.append(key, that.key); equals.append(value, that.value); equals.append(getTimestamp(), that.getTimestamp()); return equals.build(); }
From source file:de.perdian.apps.dashboard.mvc.modules.project.ProjectControllerRequest.java
@Override public boolean equals(Object that) { if (that instanceof ProjectControllerRequest) { ProjectControllerRequest thatRequest = (ProjectControllerRequest) that; EqualsBuilder equalsBuilder = new EqualsBuilder(); equalsBuilder.append(this.getJenkinsJobName(), thatRequest.getJenkinsJobName()); equalsBuilder.append(this.getJenkinsPassword(), thatRequest.getJenkinsPassword()); equalsBuilder.append(this.getJenkinsUrl(), thatRequest.getJenkinsUrl()); equalsBuilder.append(this.getJenkinsUsername(), thatRequest.getJenkinsUsername()); equalsBuilder.append(this.getSonarPassword(), thatRequest.getSonarPassword()); equalsBuilder.append(this.getSonarProjectName(), thatRequest.getSonarProjectName()); equalsBuilder.append(this.getSonarUrl(), thatRequest.getSonarUrl()); equalsBuilder.append(this.getSonarUsername(), thatRequest.getSonarUsername()); return equalsBuilder.isEquals(); } else {//w w w . j a v a2 s. c om return false; } }
From source file:com.capitalone.dashboard.model.Scope.java
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null || getClass() != obj.getClass()) return false; Scope that = (Scope) obj;/*from w w w. j a v a 2 s. co m*/ EqualsBuilder builder = new EqualsBuilder(); return builder.append(pId, that.pId).append(collectorId, that.collectorId).build(); }
From source file:ca.uhn.fhir.jpa.entity.TagDefinition.java
@Override public boolean equals(Object obj) { if (this == obj) { return true; }// w w w.j a va 2 s . co m if (obj == null) { return false; } if (!(obj instanceof TagDefinition)) { return false; } TagDefinition other = (TagDefinition) obj; EqualsBuilder b = new EqualsBuilder(); b.append(myId, other.myId); return b.isEquals(); }