Java 类org.apache.commons.lang.builder.EqualsBuilder 实例源码

项目:Reer    文件:WeaklyTypeReferencingMethod.java   
@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();
}
项目:lams    文件:Spreadsheet.java   
@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();
   }
项目:cas4.0.x-server-wechat    文件:HandlerResult.java   
@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();
}
项目:cas4.0.x-server-wechat    文件:AbstractRegisteredService.java   
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();
}
项目:lams    文件:SubmissionDetails.java   
@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();
   }
项目:lams    文件:CompletedActivityProgress.java   
@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();
   }
项目:lams    文件:TaskListItemAttachment.java   
@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();
   }
项目:keti    文件:BaseResource.java   
@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;
}
项目:Reer    文件:Methods.java   
@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();
}
项目:obevo    文件:Change.java   
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();
}
项目:echo    文件:Relationship.java   
@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();
}
项目:echo    文件:DataflowInput.java   
@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();
}
项目:echo    文件:Config.java   
@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();
}
项目:hadoop    文件:ShortCircuitShm.java   
@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();
}
项目:lams    文件:CrNodeVersion.java   
/** 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();
   }
项目:lams    文件:CrWorkspaceCredential.java   
@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();
   }
项目:keti    文件:ResourceEntity.java   
@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;
}
项目:lams    文件:SpreadsheetUser.java   
@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();

   }
项目:lams    文件:Group.java   
@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();
   }
项目:lams    文件:Tool.java   
@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();
   }
项目:INFOotball    文件:TeamPlayers.java   
@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();
}
项目:INFOotball    文件:Player.java   
@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();
}
项目:hadoop    文件:HdfsVolumeId.java   
@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();
}
项目:INFOotball    文件:LiveScores.java   
@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();
}
项目:lams    文件:CrNodeVersionProperty.java   
@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();
   }
项目:light-saga-4j    文件:DestinationAndResource.java   
@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();
}
项目:lams    文件:SimpleTicket.java   
@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();
   }
项目:streamsx.jmxclients    文件:MetricsExporter.java   
@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();
}
项目:sling-org-apache-sling-query    文件:Option.java   
@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();
}
项目:sling-org-apache-sling-query    文件:Attribute.java   
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();
}
项目:jta-atomikos    文件:TsysApp.java   
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();
}
项目:lams    文件:AuthenticationMethodType.java   
@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();
   }
项目:research-graphql    文件:ProductDto.java   
@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();
}
项目:research-graphql    文件:OrderItemDto.java   
@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();
}
项目:lams    文件:RatingCriteria.java   
@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();
   }
项目:keti    文件:AttributeConnector.java   
@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;
}
项目:lams    文件:LearningDesign.java   
@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();
   }
项目:lams    文件:TaskList.java   
@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();
   }
项目:lams    文件:Lesson.java   
@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();
   }
项目:lams    文件:QaQueUsr.java   
@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();
   }