當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。