Java Code Examples for org.apache.commons.lang.builder.EqualsBuilder

The following are top voted examples for showing how to use org.apache.commons.lang.builder.EqualsBuilder. These examples are extracted from open source projects. You can vote up the examples you like and your votes will be used in our system to generate more good examples.
Example 1
Project: Reer   File: WeaklyTypeReferencingMethod.java   Source Code and License 6 votes vote down vote up
@Override
public boolean equals(Object obj) {
    if (this == obj) {
        return true;
    }
    if (!(obj instanceof WeaklyTypeReferencingMethod)) {
        return false;
    }

    WeaklyTypeReferencingMethod<?, ?> other = Cast.uncheckedCast(obj);

    return new EqualsBuilder()
            .append(declaringType, other.declaringType)
            .append(returnType, other.returnType)
            .append(name, other.name)
            .append(paramTypes, other.paramTypes)
            .isEquals();
}
 
Example 2
Project: lams   File: Spreadsheet.java   Source Code and License 6 votes vote down vote up
@Override
   public boolean equals(Object o) {
if (this == o) {
    return true;
}
if (!(o instanceof Spreadsheet)) {
    return false;
}

final Spreadsheet genericEntity = (Spreadsheet) o;

return new EqualsBuilder().append(this.uid, genericEntity.uid).append(this.title, genericEntity.title)
	.append(this.instructions, genericEntity.instructions).append(this.code, genericEntity.code)
	.append(this.created, genericEntity.created).append(this.updated, genericEntity.updated)
	.append(this.createdBy, genericEntity.createdBy).isEquals();
   }
 
Example 3
Project: cas4.0.x-server-wechat   File: HandlerResult.java   Source Code and License 6 votes vote down vote up
@Override
public boolean equals(final Object obj) {
    if (!(obj instanceof HandlerResult)) {
        return false;
    }
    if (obj == this) {
        return true;
    }
    final HandlerResult other = (HandlerResult) obj;
    final EqualsBuilder builder = new EqualsBuilder();
    builder.append(this.handlerName, other.handlerName);
    builder.append(this.credentialMetaData, other.credentialMetaData);
    builder.append(this.principal, other.principal);
    builder.append(this.warnings, other.warnings);
    return builder.isEquals();
}
 
Example 4
Project: cas4.0.x-server-wechat   File: AbstractRegisteredService.java   Source Code and License 6 votes vote down vote up
public boolean equals(final Object o) {
    if (o == null) {
        return false;
    }

    if (this == o) {
        return true;
    }

    if (!(o instanceof AbstractRegisteredService)) {
        return false;
    }

    final AbstractRegisteredService that = (AbstractRegisteredService) o;

    return new EqualsBuilder().append(this.allowedToProxy, that.allowedToProxy)
            .append(this.anonymousAccess, that.anonymousAccess).append(this.enabled, that.enabled)
            .append(this.evaluationOrder, that.evaluationOrder)
            .append(this.ignoreAttributes, that.ignoreAttributes).append(this.ssoEnabled, that.ssoEnabled)
            .append(this.allowedAttributes, that.allowedAttributes).append(this.description, that.description)
            .append(this.name, that.name).append(this.serviceId, that.serviceId).append(this.theme, that.theme)
            .append(this.usernameAttribute, that.usernameAttribute).append(this.logoutType, that.logoutType)
            .isEquals();
}
 
Example 5
Project: lams   File: SubmissionDetails.java   Source Code and License 6 votes vote down vote up
@Override
   public boolean equals(Object other) {
if ((this == other)) {
    return true;
}
if (!(other instanceof SubmissionDetails)) {
    return false;
}
SubmissionDetails castOther = (SubmissionDetails) other;
return new EqualsBuilder().append(this.getSubmissionID(), castOther.getSubmissionID())
	.append(this.getFilePath(), castOther.getFilePath())
	.append(this.getFileDescription(), castOther.getFileDescription())
	.append(this.getDateOfSubmission(), castOther.getDateOfSubmission())
	.append(this.getUuid(), castOther.getUuid()).append(this.getVersionID(), castOther.getVersionID())
	.append(this.getReport(), castOther.getReport()).isEquals();
   }
 
Example 6
Project: lams   File: CompletedActivityProgress.java   Source Code and License 6 votes vote down vote up
@Override
   public boolean equals(Object other) {
if ((this == other)) {
    return true;
}
if (!(other instanceof CompletedActivityProgress)) {
    return false;
}
CompletedActivityProgress castOther = (CompletedActivityProgress) other;

EqualsBuilder eq = new EqualsBuilder();
eq.append(this.getActivity().getActivityId(), castOther.getActivity().getActivityId());
eq.append(this.getLearnerProgress().getLearnerProgressId(),
	castOther.getLearnerProgress().getLearnerProgressId());
return eq.isEquals();
   }
 
Example 7
Project: lams   File: TaskListItemAttachment.java   Source Code and License 6 votes vote down vote up
@Override
   public boolean equals(Object o) {
if (this == o) {
    return true;
}
if (!(o instanceof TaskListItemAttachment)) {
    return false;
}

final TaskListItemAttachment genericEntity = (TaskListItemAttachment) o;

return new EqualsBuilder().append(this.uid, genericEntity.uid)
	.append(this.fileVersionId, genericEntity.fileVersionId).append(this.fileName, genericEntity.fileName)
	.append(this.fileType, genericEntity.fileType).append(this.created, genericEntity.created)
	.append(this.createBy, genericEntity.createBy).isEquals();
   }
 
Example 8
Project: keti   File: BaseResource.java   Source Code and License 5 votes vote down vote up
@Override
public boolean equals(final Object obj) {
    if (obj instanceof BaseResource) {
        final BaseResource other = (BaseResource) obj;
        return new EqualsBuilder().append(this.resourceIdentifier, other.getResourceIdentifier()).isEquals();
    }
    return false;
}
 
Example 9
Project: Reer   File: Methods.java   Source Code and License 5 votes vote down vote up
@Override
protected boolean doEquivalent(Method a, Method b) {
    return new EqualsBuilder()
        .append(a.getName(), b.getName())
        .append(a.getGenericParameterTypes(), b.getGenericParameterTypes())
        .append(a.getGenericReturnType(), b.getGenericReturnType())
        .isEquals();
}
 
Example 10
Project: obevo   File: Change.java   Source Code and License 5 votes vote down vote up
public boolean equalsOnContent(Change other) {
    return new EqualsBuilder()
            .append(this.getSchema(), other.getSchema())
            .append(this.getObjectName(), other.getObjectName())
            .append(this.getChangeType(), other.getChangeType())
            .append(this.getContentHash(), other.getContentHash())
            .isEquals();
}
 
Example 11
Project: echo   File: Relationship.java   Source Code and License 5 votes vote down vote up
@Override
public boolean equals(Object other) {
    if (other == this) {
        return true;
    }
    if ((other instanceof Relationship) == false) {
        return false;
    }
    Relationship rhs = ((Relationship) other);
    return new EqualsBuilder().append(name, rhs.name).append(autoTerminate, rhs.autoTerminate).append(additionalProperties, rhs.additionalProperties).isEquals();
}
 
Example 12
Project: echo   File: DataflowInput.java   Source Code and License 5 votes vote down vote up
@Override
public boolean equals(Object other) {
    if (other == this) {
        return true;
    }
    if ((other instanceof DataflowInput) == false) {
        return false;
    }
    DataflowInput rhs = ((DataflowInput) other);
    return new EqualsBuilder().append(processors, rhs.processors).append(wiring, rhs.wiring).append(inputstreams, rhs.inputstreams).append(qOS, rhs.qOS).append(additionalProperties, rhs.additionalProperties).isEquals();
}
 
Example 13
Project: echo   File: Config.java   Source Code and License 5 votes vote down vote up
@Override
public boolean equals(Object other) {
    if (other == this) {
        return true;
    }
    if ((other instanceof Config) == false) {
        return false;
    }
    Config rhs = ((Config) other);
    return new EqualsBuilder().append(additionalProperties, rhs.additionalProperties).isEquals();
}
 
Example 14
Project: hadoop   File: ShortCircuitShm.java   Source Code and License 5 votes vote down vote up
@Override
public boolean equals(Object o) {
  if ((o == null) || (o.getClass() != this.getClass())) {
    return false;
  }
  ShmId other = (ShmId)o;
  return new EqualsBuilder().
      append(hi, other.hi).
      append(lo, other.lo).
      isEquals();
}
 
Example 15
Project: lams   File: CrNodeVersion.java   Source Code and License 5 votes vote down vote up
/** Two CrNodeVersions are equal if their NvId field is the same */
   @Override
   public boolean equals(Object other) {
if ((this == other)) {
    return true;
}
if (!(other instanceof CrNodeVersion)) {
    return false;
}
CrNodeVersion castOther = (CrNodeVersion) other;
return new EqualsBuilder().append(this.getNvId(), castOther.getNvId()).isEquals();
   }
 
Example 16
Project: lams   File: CrWorkspaceCredential.java   Source Code and License 5 votes vote down vote up
@Override
   public boolean equals(Object other) {
if ((this == other)) {
    return true;
}
if (!(other instanceof CrWorkspaceCredential)) {
    return false;
}
CrWorkspaceCredential castOther = (CrWorkspaceCredential) other;
return new EqualsBuilder().append(this.getWcId(), castOther.getWcId())
	.append(this.getCrWorkspace(), castOther.getCrWorkspace())
	.append(this.getCrCredential(), castOther.getCrCredential()).isEquals();
   }
 
Example 17
Project: keti   File: ResourceEntity.java   Source Code and License 5 votes vote down vote up
@Override
public boolean equals(final Object obj) {
    if (obj instanceof ResourceEntity) {
        ResourceEntity other = (ResourceEntity) obj;
        return new EqualsBuilder().append(this.resourceIdentifier, other.resourceIdentifier)
                .append(this.zone, other.zone).append(this.attributesAsJson, other.attributesAsJson)
                .append(this.parents, other.parents).isEquals();
    }
    return false;
}
 
Example 18
Project: lams   File: SpreadsheetUser.java   Source Code and License 5 votes vote down vote up
@Override
   public boolean equals(Object obj) {
if (this == obj) {
    return true;
}
if (!(obj instanceof SpreadsheetUser)) {
    return false;
}

final SpreadsheetUser user = (SpreadsheetUser) obj;

return new EqualsBuilder().append(this.uid, user.uid).append(this.firstName, user.firstName)
	.append(this.lastName, user.lastName).append(this.loginName, user.loginName).isEquals();

   }
 
Example 19
Project: lams   File: Group.java   Source Code and License 5 votes vote down vote up
@Override
   public boolean equals(Object other) {
if ((this == other)) {
    return true;
}
if (!(other instanceof Group)) {
    return false;
}
Group castOther = (Group) other;
return new EqualsBuilder().append(this.getOrderId(), castOther.getOrderId())
	.append(this.getGroupId(), castOther.getGroupId()).append(this.getGroupName(), castOther.getGroupName())
	.append(this.getGroupUIID(), castOther.getGroupUIID()).isEquals();
   }
 
Example 20
Project: lams   File: Tool.java   Source Code and License 5 votes vote down vote up
@Override
   public boolean equals(Object other) {
if (this == other) {
    return true;
}
if (!(other instanceof Tool)) {
    return false;
}
Tool castOther = (Tool) other;
return new EqualsBuilder().append(this.getToolId(), castOther.getToolId()).isEquals();
   }
 
Example 21
Project: INFOotball   File: TeamPlayers.java   Source Code and License 5 votes vote down vote up
@Override
public boolean equals(Object other){
    if(other == this){
        return true;
    } if((other instanceof TeamPlayers) == false){
        return false;
    } TeamPlayers rhs = ((TeamPlayers)other);
    return new EqualsBuilder().append(player,rhs.player).isEquals();
}
 
Example 22
Project: INFOotball   File: Player.java   Source Code and License 5 votes vote down vote up
@Override
public boolean equals(Object other){
    if(other == this){
        return true;
    } if((other instanceof Player) == false){
        return false;
    } Player rhs = ((Player)other);
    return new EqualsBuilder().append(strLocked,rhs.strLocked).append(strDescriptionIL,rhs.strDescriptionIL).append(strDescriptionEN,rhs.strDescriptionEN).append(strDescriptionRU,rhs.strDescriptionRU).append(strTwitter,rhs.strTwitter).append(strWebsite,rhs.strWebsite).append(idPlayer,rhs.idPlayer).append(strDescriptionPL,rhs.strDescriptionPL).append(strDescriptionCN,rhs.strDescriptionCN).append(strWeight,rhs.strWeight).append(strBirthLocation,rhs.strBirthLocation).append(strDescriptionNO,rhs.strDescriptionNO).append(strDescriptionPT,rhs.strDescriptionPT).append(strDescriptionES,rhs.strDescriptionES).append(strPlayer,rhs.strPlayer).append(strDescriptionNL,rhs.strDescriptionNL).append(strSigning,rhs.strSigning).append(strThumb,rhs.strThumb).append(strHeight,rhs.strHeight).append(strDescriptionSE,rhs.strDescriptionSE).append(dateBorn,rhs.dateBorn).append(strCutout,rhs.strCutout).append(idSoccerXML,rhs.idSoccerXML).append(strDescriptionIT,rhs.strDescriptionIT).append(intSoccerXMLTeamID,rhs.intSoccerXMLTeamID).append(strTeam,rhs.strTeam).append(idPlayerManager,rhs.idPlayerManager).append(strWage,rhs.strWage).append(strSport,rhs.strSport).append(strCollege,rhs.strCollege).append(dateSigned,rhs.dateSigned).append(intLoved,rhs.intLoved).append(strDescriptionJP,rhs.strDescriptionJP).append(strNationality,rhs.strNationality).append(idTeam,rhs.idTeam).append(strYoutube,rhs.strYoutube).append(strFacebook,rhs.strFacebook).append(strDescriptionHU,rhs.strDescriptionHU).append(strGender,rhs.strGender).append(strDescriptionDE,rhs.strDescriptionDE).append(strFanart4,rhs.strFanart4).append(strFanart3,rhs.strFanart3).append(strFanart2,rhs.strFanart2).append(strInstagram,rhs.strInstagram).append(strDescriptionFR,rhs.strDescriptionFR).append(strFanart1,rhs.strFanart1).append(strPosition,rhs.strPosition).isEquals();
}
 
Example 23
Project: hadoop   File: HdfsVolumeId.java   Source Code and License 5 votes vote down vote up
@Override
public boolean equals(Object obj) {
  if (obj == null || obj.getClass() != getClass()) {
    return false;
  }
  if (obj == this) {
    return true;
  }
  HdfsVolumeId that = (HdfsVolumeId) obj;
  return new EqualsBuilder().append(this.id, that.id).isEquals();
}
 
Example 24
Project: INFOotball   File: LiveScores.java   Source Code and License 5 votes vote down vote up
@Override
public boolean equals(Object other){
    if(other == this){
        return true;
    } if((other instanceof LiveScores) == false){
        return false;
    } LiveScores rhs = ((LiveScores)other);
    return new EqualsBuilder().append(teams,rhs.teams).isEquals();
}
 
Example 25
Project: lams   File: CrNodeVersionProperty.java   Source Code and License 5 votes vote down vote up
@Override
   public boolean equals(Object other) {
if ((this == other)) {
    return true;
}
if (!(other instanceof CrNodeVersionProperty)) {
    return false;
}
CrNodeVersionProperty castOther = (CrNodeVersionProperty) other;
return new EqualsBuilder().append(this.getId(), castOther.getId()).append(this.getName(), castOther.getName())
	.append(this.getValue(), castOther.getValue()).append(this.getType(), castOther.getType())
	.append(this.getCrNodeVersion(), castOther.getCrNodeVersion()).isEquals();
   }
 
Example 26
Project: light-saga-4j   File: DestinationAndResource.java   Source Code and License 5 votes vote down vote up
@Override
public boolean equals(Object o) {
  if (this == o) return true;

  if (o == null || getClass() != o.getClass()) return false;

  DestinationAndResource that = (DestinationAndResource) o;

  return new EqualsBuilder()
          .append(destination, that.destination)
          .append(resource, that.resource)
          .isEquals();
}
 
Example 27
Project: lams   File: SimpleTicket.java   Source Code and License 5 votes vote down vote up
@Override
   public boolean equals(Object other) {
if ((this == other)) {
    return true;
}
if (!(other instanceof SimpleTicket)) {
    return false;
}
SimpleTicket castOther = (SimpleTicket) other;
return new EqualsBuilder().append(this.getWorkspaceId(), castOther.getWorkspaceId())
	.append(this.getTicketId(), castOther.getTicketId()).isEquals();
   }
 
Example 28
Project: streamsx.jmxclients   File: MetricsExporter.java   Source Code and License 5 votes vote down vote up
@Override
public boolean equals(Object obj) {
	if (obj instanceof Metric == false) {
		return false;
	}
	if (this == obj) {
		return true;
	}
	final Metric otherObject = (Metric)obj;

	return new EqualsBuilder().append(this.name,otherObject.name)
		.append(this.labelValues, otherObject.labelValues)
		.isEquals();
}
 
Example 29
Project: sling-org-apache-sling-query   File: Option.java   Source Code and License 5 votes vote down vote up
@Override
public boolean equals(Object obj) {
	if (obj == null) {
		return false;
	}
	if (obj == this) {
		return true;
	}
	if (obj.getClass() != getClass()) {
		return false;
	}
	Option<?> rhs = (Option<?>) obj;
	return new EqualsBuilder().append(element, rhs.element).isEquals();
}
 
Example 30
Project: sling-org-apache-sling-query   File: Attribute.java   Source Code and License 5 votes vote down vote up
public boolean equals(Object obj) {
	if (obj == null) {
		return false;
	}
	if (obj == this) {
		return true;
	}
	if (obj.getClass() != getClass()) {
		return false;
	}
	Attribute rhs = (Attribute) obj;
	return new EqualsBuilder().append(key, rhs.key).append(value, rhs.value).isEquals();
}
 
Example 31
Project: jta-atomikos   File: TsysApp.java   Source Code and License 5 votes vote down vote up
public boolean equals(Object obj) {
	if(obj instanceof TsysApp == false) return false;
	if(this == obj) return true;
	TsysApp other = (TsysApp)obj;
	return new EqualsBuilder()
		.append(getAppId(),other.getAppId())
		.isEquals();
}
 
Example 32
Project: lams   File: AuthenticationMethodType.java   Source Code and License 5 votes vote down vote up
@Override
   public boolean equals(Object other) {
if (!(other instanceof AuthenticationMethodType)) {
    return false;
}
AuthenticationMethodType castOther = (AuthenticationMethodType) other;
return new EqualsBuilder()
	.append(this.getAuthenticationMethodTypeId(), castOther.getAuthenticationMethodTypeId()).isEquals();
   }
 
Example 33
Project: research-graphql   File: ProductDto.java   Source Code and License 5 votes vote down vote up
@Override
public boolean equals(Object other) {
    if (other == this) {
        return true;
    }
    if ((other instanceof ProductDto) == false) {
        return false;
    }
    ProductDto rhs = ((ProductDto) other);
    return new EqualsBuilder().append(id, rhs.id).append(name, rhs.name).append(brand, rhs.brand).append(category, rhs.category).append(description, rhs.description).append(price, rhs.price).isEquals();
}
 
Example 34
Project: research-graphql   File: OrderItemDto.java   Source Code and License 5 votes vote down vote up
@Override
public boolean equals(Object other) {
    if (other == this) {
        return true;
    }
    if ((other instanceof OrderItemDto) == false) {
        return false;
    }
    OrderItemDto rhs = ((OrderItemDto) other);
    return new EqualsBuilder().append(productId, rhs.productId).append(quantity, rhs.quantity).isEquals();
}
 
Example 35
Project: lams   File: RatingCriteria.java   Source Code and License 5 votes vote down vote up
@Override
   public boolean equals(Object other) {
if (this == other) {
    return true;
}
if (!(other instanceof RatingCriteria)) {
    return false;
}
RatingCriteria castOther = (RatingCriteria) other;
return new EqualsBuilder().append(this.getOrderId(), castOther.getOrderId()).isEquals();
   }
 
Example 36
Project: keti   File: AttributeConnector.java   Source Code and License 5 votes vote down vote up
@Override
public boolean equals(final Object obj) {
    if (obj instanceof AttributeConnector) {
        AttributeConnector other = (AttributeConnector) obj;
        return new EqualsBuilder().append(this.isActive, other.isActive)
                .append(this.maxCachedIntervalMinutes, other.maxCachedIntervalMinutes)
                .append(this.adapters, other.adapters).isEquals();
    }
    return false;
}
 
Example 37
Project: lams   File: LearningDesign.java   Source Code and License 5 votes vote down vote up
@Override
   public boolean equals(Object other) {
if ((this == other)) {
    return true;
}
if (!(other instanceof LearningDesign)) {
    return false;
}
LearningDesign castOther = (LearningDesign) other;
return new EqualsBuilder().append(this.getReadOnly(), castOther.getReadOnly()).isEquals();
   }
 
Example 38
Project: lams   File: TaskList.java   Source Code and License 5 votes vote down vote up
@Override
   public boolean equals(Object o) {
if (this == o) {
    return true;
}
if (!(o instanceof TaskList)) {
    return false;
}

final TaskList genericEntity = (TaskList) o;

return new EqualsBuilder().append(this.uid, genericEntity.uid).append(this.title, genericEntity.title)
	.append(this.instructions, genericEntity.instructions).append(this.created, genericEntity.created)
	.append(this.updated, genericEntity.updated).append(this.createdBy, genericEntity.createdBy).isEquals();
   }
 
Example 39
Project: lams   File: Lesson.java   Source Code and License 5 votes vote down vote up
@Override
   public boolean equals(Object other) {
if ((this == other)) {
    return true;
}
if (!(other instanceof Lesson)) {
    return false;
}
Lesson castOther = (Lesson) other;
return new EqualsBuilder().append(this.getLessonId(), castOther.getLessonId()).isEquals();
   }
 
Example 40
Project: lams   File: QaQueUsr.java   Source Code and License 5 votes vote down vote up
@Override
   public boolean equals(Object other) {
if (!(other instanceof QaQueUsr)) {
    return false;
}
QaQueUsr castOther = (QaQueUsr) other;
return new EqualsBuilder().append(this.getQueUsrId(), castOther.getQueUsrId()).isEquals();
   }