當前位置: 首頁>>代碼示例>>Java>>正文


Java EqualsBuilder.isEquals方法代碼示例

本文整理匯總了Java中org.apache.commons.lang3.builder.EqualsBuilder.isEquals方法的典型用法代碼示例。如果您正苦於以下問題:Java EqualsBuilder.isEquals方法的具體用法?Java EqualsBuilder.isEquals怎麽用?Java EqualsBuilder.isEquals使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在org.apache.commons.lang3.builder.EqualsBuilder的用法示例。


在下文中一共展示了EqualsBuilder.isEquals方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: equals

import org.apache.commons.lang3.builder.EqualsBuilder; //導入方法依賴的package包/類
@Override
public boolean equals(final Object obj) {
    if (!(obj instanceof Authentication)) {
        return false;
    }
    if (obj == this) {
        return true;
    }
    final Authentication other = (Authentication) obj;
    final EqualsBuilder builder = new EqualsBuilder();
    builder.append(this.principal, other.getPrincipal());
    builder.append(this.credentials, other.getCredentials());
    builder.append(this.successes, other.getSuccesses());
    builder.append(this.authenticationDate, other.getAuthenticationDate());
    builder.append(wrap(this.attributes), other.getAttributes());
    builder.append(wrap(this.failures), other.getFailures());
    return builder.isEquals();
}
 
開發者ID:hsj-xiaokang,項目名稱:springboot-shiro-cas-mybatis,代碼行數:19,代碼來源:ImmutableAuthentication.java

示例2: equals

import org.apache.commons.lang3.builder.EqualsBuilder; //導入方法依賴的package包/類
@Override
public boolean equals(final Object obj) {
    if (!(obj instanceof DefaultHandlerResult)) {
        return false;
    }
    if (obj == this) {
        return true;
    }
    final DefaultHandlerResult other = (DefaultHandlerResult) 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:hsj-xiaokang,項目名稱:springboot-shiro-cas-mybatis,代碼行數:17,代碼來源:DefaultHandlerResult.java

示例3: equals

import org.apache.commons.lang3.builder.EqualsBuilder; //導入方法依賴的package包/類
@Override
public boolean equals(final Object obj) {
	if (obj == null) {
		return false;

	} else if (obj == this) {
		return true;

	} else if (obj.getClass() != ReceivedValue.class) {
		return false;

	} else {
		final ReceivedValue objCast = (ReceivedValue) obj;

		final EqualsBuilder builder = new EqualsBuilder();

		builder.append(exists, objCast.exists);
		builder.append(value, objCast.value);

		return builder.isEquals();
	}
}
 
開發者ID:MatthewTamlin,項目名稱:Spyglass,代碼行數:23,代碼來源:ReceivedValue.java

示例4: equals

import org.apache.commons.lang3.builder.EqualsBuilder; //導入方法依賴的package包/類
@Override
public boolean equals(final Object obj) {
    if (!(obj instanceof Authentication)) {
        return false;
    }
    if (obj == this) {
        return true;
    }
    final Authentication other = (Authentication) obj;
    final EqualsBuilder builder = new EqualsBuilder();
    builder.append(this.principal, other.getPrincipal());
    builder.append(this.credentials, other.getCredentials());
    builder.append(this.successes, other.getSuccesses());
    builder.append(this.authenticationDate, other.getAuthenticationDate().getTime());
    builder.append(wrap(this.attributes), other.getAttributes());
    builder.append(wrap(this.failures), other.getFailures());
    return builder.isEquals();
}
 
開發者ID:hsj-xiaokang,項目名稱:springboot-shiro-cas-mybatis,代碼行數:19,代碼來源:ImmutableAuthentication.java

示例5: equals

import org.apache.commons.lang3.builder.EqualsBuilder; //導入方法依賴的package包/類
@Override
public boolean equals(final Object obj) {
    if (!(obj instanceof Authentication)) {
        return false;
    }
    if (obj == this) {
        return true;
    }
    final Authentication other = (Authentication) obj;
    final EqualsBuilder builder = new EqualsBuilder();
    builder.append(this.principal, other.getPrincipal());
    builder.append(this.credentials, other.getCredentials());
    builder.append(this.successes, other.getSuccesses());
    builder.append(this.authenticationDate, other.getAuthenticationDate());
    builder.append(CollectionUtils.wrap(this.attributes), other.getAttributes());
    builder.append(CollectionUtils.wrap(this.failures), other.getFailures());
    return builder.isEquals();
}
 
開發者ID:mrluo735,項目名稱:cas-5.1.0,代碼行數:19,代碼來源:DefaultAuthentication.java

示例6: equals

import org.apache.commons.lang3.builder.EqualsBuilder; //導入方法依賴的package包/類
@Override
public boolean equals(Object obj) {
    if (this == obj) {
        return true;
    }
    if (!(obj instanceof ClusterMember)) {
        return false;
    }

    if (isLocal()) {
        return super.equals(obj);
    }

    ClusterMember other = (ClusterMember) obj;
    EqualsBuilder builder = new EqualsBuilder() //
            .append(getName(), other.getName());
    builder.append(getId(), other.getId());
    return builder.isEquals();
}
 
開發者ID:r2dg,項目名稱:smesh,代碼行數:20,代碼來源:ClusterMember.java

示例7: equals

import org.apache.commons.lang3.builder.EqualsBuilder; //導入方法依賴的package包/類
@Override
public boolean equals(final Object obj) {
    if (obj == null) {
        return false;
    }
    if (obj == this) {
        return true;
    }
    if (obj.getClass() != getClass()) {
        return false;
    }
    final AbstractWebApplicationService rhs = (AbstractWebApplicationService) obj;
    final EqualsBuilder builder = new EqualsBuilder();
    builder
            .append(this.id, rhs.id)
            .append(this.originalUrl, rhs.originalUrl)
            .append(this.artifactId, rhs.artifactId)
            .append(this.principal, rhs.principal)
            .append(this.loggedOutAlready, rhs.loggedOutAlready)
            .append(this.format, rhs.format);
    return builder.isEquals();
}
 
開發者ID:mrluo735,項目名稱:cas-5.1.0,代碼行數:23,代碼來源:AbstractWebApplicationService.java

示例8: equals

import org.apache.commons.lang3.builder.EqualsBuilder; //導入方法依賴的package包/類
@Override
public boolean equals(final Object other) {
    if (other == null) {
        return false;
    }
    if (!(other instanceof Credential)) {
        return false;
    }
    if (other == this) {
        return true;
    }
    final EqualsBuilder builder = new EqualsBuilder();
    builder.append(getId(), ((Credential) other).getId());
    return builder.isEquals();
}
 
開發者ID:hsj-xiaokang,項目名稱:springboot-shiro-cas-mybatis,代碼行數:16,代碼來源:AbstractCredential.java

示例9: equals

import org.apache.commons.lang3.builder.EqualsBuilder; //導入方法依賴的package包/類
@Override
public boolean equals(final Object other) {
    if (!(other instanceof BasicCredentialMetaData)) {
        return false;
    }
    final BasicCredentialMetaData md = (BasicCredentialMetaData) other;
    final EqualsBuilder builder = new EqualsBuilder();
    builder.append(this.id, md.id);
    builder.append(this.credentialClass, md.credentialClass);
    return builder.isEquals();
}
 
開發者ID:hsj-xiaokang,項目名稱:springboot-shiro-cas-mybatis,代碼行數:12,代碼來源:BasicCredentialMetaData.java

示例10: equals

import org.apache.commons.lang3.builder.EqualsBuilder; //導入方法依賴的package包/類
@Override
public boolean equals(final Object obj) {
    if (!(obj instanceof DuoCredential)) {
        return false;
    }
    if (obj == this) {
        return true;
    }
    final DuoCredential other = (DuoCredential) obj;
    final EqualsBuilder builder = new EqualsBuilder();
    builder.append(this.username, other.username);
    return builder.isEquals();
}
 
開發者ID:hsj-xiaokang,項目名稱:springboot-shiro-cas-mybatis,代碼行數:14,代碼來源:DuoCredential.java

示例11: equals

import org.apache.commons.lang3.builder.EqualsBuilder; //導入方法依賴的package包/類
@Override
public boolean equals(final Object obj) {
    if (!(obj instanceof RadiusTokenCredential)) {
        return false;
    }
    if (obj == this) {
        return true;
    }
    final RadiusTokenCredential other = (RadiusTokenCredential) obj;
    final EqualsBuilder builder = new EqualsBuilder();
    builder.append(this.token, other.token);
    return builder.isEquals();
}
 
開發者ID:mrluo735,項目名稱:cas-5.1.0,代碼行數:14,代碼來源:RadiusTokenCredential.java

示例12: equals

import org.apache.commons.lang3.builder.EqualsBuilder; //導入方法依賴的package包/類
@Override
public boolean equals(final Object obj) {
    if (!(obj instanceof YubiKeyCredential)) {
        return false;
    }
    if (obj == this) {
        return true;
    }
    final YubiKeyCredential other = (YubiKeyCredential) obj;
    final EqualsBuilder builder = new EqualsBuilder();
    builder.append(this.token, other.token);
    return builder.isEquals();
}
 
開發者ID:mrluo735,項目名稱:cas-5.1.0,代碼行數:14,代碼來源:YubiKeyCredential.java

示例13: equals

import org.apache.commons.lang3.builder.EqualsBuilder; //導入方法依賴的package包/類
@Override
public boolean equals(final Object obj) {
    if (!(obj instanceof AuthyTokenCredential)) {
        return false;
    }
    if (obj == this) {
        return true;
    }
    final AuthyTokenCredential other = (AuthyTokenCredential) obj;
    final EqualsBuilder builder = new EqualsBuilder();
    builder.append(this.token, other.token);
    return builder.isEquals();
}
 
開發者ID:mrluo735,項目名稱:cas-5.1.0,代碼行數:14,代碼來源:AuthyTokenCredential.java

示例14: equals

import org.apache.commons.lang3.builder.EqualsBuilder; //導入方法依賴的package包/類
@Override
public boolean equals(final Object obj) {
    if (!(obj instanceof DuoCredential)) {
        return false;
    }
    if (obj == this) {
        return true;
    }
    final DuoCredential other = (DuoCredential) obj;
    final EqualsBuilder builder = new EqualsBuilder();
    builder.append(this.username, other.getUsername());
    return builder.isEquals();
}
 
開發者ID:mrluo735,項目名稱:cas-5.1.0,代碼行數:14,代碼來源:DuoCredential.java

示例15: equals

import org.apache.commons.lang3.builder.EqualsBuilder; //導入方法依賴的package包/類
@Override
public boolean equals(final Object obj) {
    if (!(obj instanceof U2FTokenCredential)) {
        return false;
    }
    if (obj == this) {
        return true;
    }
    final U2FTokenCredential other = (U2FTokenCredential) obj;
    final EqualsBuilder builder = new EqualsBuilder();
    builder.append(this.token, other.token);
    return builder.isEquals();
}
 
開發者ID:mrluo735,項目名稱:cas-5.1.0,代碼行數:14,代碼來源:U2FTokenCredential.java


注:本文中的org.apache.commons.lang3.builder.EqualsBuilder.isEquals方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。