本文整理汇总了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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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;
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}