本文整理汇总了Java中org.apache.commons.lang3.builder.EqualsBuilder.append方法的典型用法代码示例。如果您正苦于以下问题:Java EqualsBuilder.append方法的具体用法?Java EqualsBuilder.append怎么用?Java EqualsBuilder.append使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.commons.lang3.builder.EqualsBuilder
的用法示例。
在下文中一共展示了EqualsBuilder.append方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: equals
import org.apache.commons.lang3.builder.EqualsBuilder; //导入方法依赖的package包/类
@Override
public boolean equals(Object theObj) {
if (!(theObj instanceof ConceptEntity)) {
return false;
}
if (theObj == this) {
return true;
}
ConceptEntity obj = (ConceptEntity) theObj;
EqualsBuilder b = new EqualsBuilder();
b.append(codeSystemEntity, obj.codeSystemEntity);
b.append(code, obj.code);
return b.isEquals();
}
示例2: 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();
}
示例3: 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();
}
示例4: 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();
}
}
示例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();
}
示例6: 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(CollectionUtils.wrap(this.warnings), CollectionUtils.wrap(other.warnings));
return builder.isEquals();
}
示例7: 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();
}
示例8: 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();
}
示例9: 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();
}
示例10: 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();
}
示例11: equals
import org.apache.commons.lang3.builder.EqualsBuilder; //导入方法依赖的package包/类
@Override
public boolean equals(final Object obj) {
if (!(obj instanceof OneTimeTokenCredential)) {
return false;
}
if (obj == this) {
return true;
}
final OneTimeTokenCredential other = (OneTimeTokenCredential) obj;
final EqualsBuilder builder = new EqualsBuilder();
builder.append(this.token, other.token);
return builder.isEquals();
}
示例12: 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();
}
示例13: 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();
}