本文整理汇总了Java中org.apache.commons.lang.builder.HashCodeBuilder.toHashCode方法的典型用法代码示例。如果您正苦于以下问题:Java HashCodeBuilder.toHashCode方法的具体用法?Java HashCodeBuilder.toHashCode怎么用?Java HashCodeBuilder.toHashCode使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.commons.lang.builder.HashCodeBuilder
的用法示例。
在下文中一共展示了HashCodeBuilder.toHashCode方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: hashCode
import org.apache.commons.lang.builder.HashCodeBuilder; //导入方法依赖的package包/类
@Override
public int hashCode() {
HashCodeBuilder builder = new HashCodeBuilder();
boolean present_category = true && (isSetCategory());
builder.append(present_category);
if (present_category)
builder.append(category);
boolean present_message = true && (isSetMessage());
builder.append(present_message);
if (present_message)
builder.append(message);
return builder.toHashCode();
}
示例2: hashCode
import org.apache.commons.lang.builder.HashCodeBuilder; //导入方法依赖的package包/类
@Override
public int hashCode() {
HashCodeBuilder builder = new HashCodeBuilder();
boolean present_timestamp = true;
builder.append(present_timestamp);
if (present_timestamp)
builder.append(timestamp);
boolean present_priority = true && (isSetPriority());
builder.append(present_priority);
if (present_priority)
builder.append(priority.getValue());
boolean present_body = true && (isSetBody());
builder.append(present_body);
if (present_body)
builder.append(body);
boolean present_nanos = true;
builder.append(present_nanos);
if (present_nanos)
builder.append(nanos);
boolean present_host = true && (isSetHost());
builder.append(present_host);
if (present_host)
builder.append(host);
boolean present_fields = true && (isSetFields());
builder.append(present_fields);
if (present_fields)
builder.append(fields);
return builder.toHashCode();
}
示例3: hashCode
import org.apache.commons.lang.builder.HashCodeBuilder; //导入方法依赖的package包/类
public int hashCode() {
final HashCodeBuilder builder = new HashCodeBuilder(15, 11);
builder.append(this.primaryAuthentication);
builder.append(this.chainedAuthentications);
builder.append(this.service);
builder.append(this.fromNewLogin);
return builder.toHashCode();
}
示例4: hashCode
import org.apache.commons.lang.builder.HashCodeBuilder; //导入方法依赖的package包/类
@Override
public int hashCode() {
final HashCodeBuilder builder = new HashCodeBuilder(99, 31);
builder.append(this.code);
builder.append(this.defaultMessage);
builder.append(this.params);
return builder.toHashCode();
}
示例5: hashCode
import org.apache.commons.lang.builder.HashCodeBuilder; //导入方法依赖的package包/类
@Override
public int hashCode() {
final HashCodeBuilder builder = new HashCodeBuilder(11, 41);
builder.append(getClass().getName());
builder.append(getId());
return builder.toHashCode();
}
示例6: hashCode
import org.apache.commons.lang.builder.HashCodeBuilder; //导入方法依赖的package包/类
@Override
public int hashCode() {
final HashCodeBuilder builder = new HashCodeBuilder(97, 31);
builder.append(this.principal);
builder.append(this.authenticatedDate);
builder.append(this.attributes);
builder.append(this.credentials);
builder.append(this.successes);
builder.append(this.failures);
return builder.toHashCode();
}
示例7: hashCode
import org.apache.commons.lang.builder.HashCodeBuilder; //导入方法依赖的package包/类
@Override
public int hashCode() {
final HashCodeBuilder builder = new HashCodeBuilder(109, 31);
builder.append(this.handlerName);
builder.append(this.credentialMetaData);
builder.append(this.principal);
builder.append(this.warnings);
return builder.toHashCode();
}
示例8: hashCode
import org.apache.commons.lang.builder.HashCodeBuilder; //导入方法依赖的package包/类
@Override
public int hashCode() {
HashCodeBuilder builder = new HashCodeBuilder().append(getName()).append(getId());
if (this.applianceManagerConnector != null) {
builder.append(this.applianceManagerConnector.getId());
}
return builder.toHashCode();
}
示例9: hashCode
import org.apache.commons.lang.builder.HashCodeBuilder; //导入方法依赖的package包/类
@Override
public int hashCode() {
HashCodeBuilder builder = new HashCodeBuilder();
boolean present_event = true && (isSetEvent());
builder.append(present_event);
if (present_event)
builder.append(event);
return builder.toHashCode();
}
示例10: computeHashCode
import org.apache.commons.lang.builder.HashCodeBuilder; //导入方法依赖的package包/类
public int computeHashCode(final T object) {
final HashCodeBuilder hash = new HashCodeBuilder(17, 37);
this.keyAttrs.forEach(new Procedure<Function<T, ?>>() {
@Override
public void value(Function<T, ?> attr) {
hash.append(attr.valueOf(object));
}
});
return hash.toHashCode();
}
示例11: hashCode
import org.apache.commons.lang.builder.HashCodeBuilder; //导入方法依赖的package包/类
@Override
public int hashCode() {
HashCodeBuilder builder = new HashCodeBuilder();
boolean present_messages = true && (isSetMessages());
builder.append(present_messages);
if (present_messages)
builder.append(messages);
return builder.toHashCode();
}
示例12: hashCode
import org.apache.commons.lang.builder.HashCodeBuilder; //导入方法依赖的package包/类
@Override
public int hashCode() {
HashCodeBuilder builder = new HashCodeBuilder();
boolean present_evt = true && (isSetEvt());
builder.append(present_evt);
if (present_evt)
builder.append(evt);
return builder.toHashCode();
}
示例13: hashCode
import org.apache.commons.lang.builder.HashCodeBuilder; //导入方法依赖的package包/类
@Override
public int hashCode() {
HashCodeBuilder hashCodeBuilder = new HashCodeBuilder();
hashCodeBuilder.append(this.action).append(this.resourceIdentifier).append(this.subjectIdentifier);
if (null != this.subjectAttributes) {
for (Attribute attribute : this.subjectAttributes) {
hashCodeBuilder.append(attribute);
}
}
for (String policyID : this.policySetsEvaluationOrder) {
hashCodeBuilder.append(policyID);
}
return hashCodeBuilder.toHashCode();
}
示例14: hashCode
import org.apache.commons.lang.builder.HashCodeBuilder; //导入方法依赖的package包/类
public int hashCode() {
final HashCodeBuilder builder = new HashCodeBuilder(83, 31);
builder.append(this.id);
return builder.toHashCode();
}