当前位置: 首页>>代码示例>>Java>>正文


Java EqualsBuilder类代码示例

本文整理汇总了Java中org.apache.commons.lang.builder.EqualsBuilder的典型用法代码示例。如果您正苦于以下问题:Java EqualsBuilder类的具体用法?Java EqualsBuilder怎么用?Java EqualsBuilder使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


EqualsBuilder类属于org.apache.commons.lang.builder包,在下文中一共展示了EqualsBuilder类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: equals

import org.apache.commons.lang.builder.EqualsBuilder; //导入依赖的package包/类
@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();
}
 
开发者ID:lxxlxx888,项目名称:Reer,代码行数:19,代码来源:WeaklyTypeReferencingMethod.java

示例2: equals

import org.apache.commons.lang.builder.EqualsBuilder; //导入依赖的package包/类
@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();
   }
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:17,代码来源:Spreadsheet.java

示例3: equals

import org.apache.commons.lang.builder.EqualsBuilder; //导入依赖的package包/类
@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();
}
 
开发者ID:luotuo,项目名称:cas4.0.x-server-wechat,代码行数:17,代码来源:HandlerResult.java

示例4: equals

import org.apache.commons.lang.builder.EqualsBuilder; //导入依赖的package包/类
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();
}
 
开发者ID:luotuo,项目名称:cas4.0.x-server-wechat,代码行数:25,代码来源:AbstractRegisteredService.java

示例5: equals

import org.apache.commons.lang.builder.EqualsBuilder; //导入依赖的package包/类
@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();
   }
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:17,代码来源:SubmissionDetails.java

示例6: equals

import org.apache.commons.lang.builder.EqualsBuilder; //导入依赖的package包/类
@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();
   }
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:17,代码来源:CompletedActivityProgress.java

示例7: equals

import org.apache.commons.lang.builder.EqualsBuilder; //导入依赖的package包/类
@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();
   }
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:17,代码来源:TaskListItemAttachment.java

示例8: equals

import org.apache.commons.lang.builder.EqualsBuilder; //导入依赖的package包/类
@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;
}
 
开发者ID:eclipse,项目名称:keti,代码行数:9,代码来源:BaseResource.java

示例9: doEquivalent

import org.apache.commons.lang.builder.EqualsBuilder; //导入依赖的package包/类
@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();
}
 
开发者ID:lxxlxx888,项目名称:Reer,代码行数:9,代码来源:Methods.java

示例10: equalsOnContent

import org.apache.commons.lang.builder.EqualsBuilder; //导入依赖的package包/类
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();
}
 
开发者ID:goldmansachs,项目名称:obevo,代码行数:9,代码来源:Change.java

示例11: equals

import org.apache.commons.lang.builder.EqualsBuilder; //导入依赖的package包/类
@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();
}
 
开发者ID:dream-lab,项目名称:echo,代码行数:12,代码来源:Relationship.java

示例12: equals

import org.apache.commons.lang.builder.EqualsBuilder; //导入依赖的package包/类
@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();
}
 
开发者ID:dream-lab,项目名称:echo,代码行数:12,代码来源:DataflowInput.java

示例13: equals

import org.apache.commons.lang.builder.EqualsBuilder; //导入依赖的package包/类
@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();
}
 
开发者ID:dream-lab,项目名称:echo,代码行数:12,代码来源:Config.java

示例14: equals

import org.apache.commons.lang.builder.EqualsBuilder; //导入依赖的package包/类
@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();
}
 
开发者ID:naver,项目名称:hadoop,代码行数:12,代码来源:ShortCircuitShm.java

示例15: equals

import org.apache.commons.lang.builder.EqualsBuilder; //导入依赖的package包/类
/** 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();
   }
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:13,代码来源:CrNodeVersion.java


注:本文中的org.apache.commons.lang.builder.EqualsBuilder类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。