当前位置: 首页>>代码示例>>Java>>正文


Java HashCodeBuilder.append方法代码示例

本文整理汇总了Java中org.apache.commons.lang.builder.HashCodeBuilder.append方法的典型用法代码示例。如果您正苦于以下问题:Java HashCodeBuilder.append方法的具体用法?Java HashCodeBuilder.append怎么用?Java HashCodeBuilder.append使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.apache.commons.lang.builder.HashCodeBuilder的用法示例。


在下文中一共展示了HashCodeBuilder.append方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: hashCode

import org.apache.commons.lang.builder.HashCodeBuilder; //导入方法依赖的package包/类
@Override
public int hashCode() {
  HashCodeBuilder builder = new HashCodeBuilder();

  boolean present_headers = true && (isSetHeaders());
  builder.append(present_headers);
  if (present_headers)
    builder.append(headers);

  boolean present_body = true && (isSetBody());
  builder.append(present_body);
  if (present_body)
    builder.append(body);

  return builder.toHashCode();
}
 
开发者ID:moueimei,项目名称:flume-release-1.7.0,代码行数:17,代码来源:ThriftFlumeEvent.java

示例2: 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();
}
 
开发者ID:moueimei,项目名称:flume-release-1.7.0,代码行数:17,代码来源:LogEntry.java

示例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();
}
 
开发者ID:luotuo,项目名称:cas4.0.x-server-wechat,代码行数:9,代码来源:ImmutableAssertion.java

示例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();
}
 
开发者ID:luotuo,项目名称:cas4.0.x-server-wechat,代码行数:9,代码来源:Message.java

示例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();
}
 
开发者ID:luotuo,项目名称:cas4.0.x-server-wechat,代码行数:8,代码来源:AbstractCredential.java

示例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();
}
 
开发者ID:luotuo,项目名称:cas4.0.x-server-wechat,代码行数:12,代码来源:ImmutableAuthentication.java

示例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();
}
 
开发者ID:luotuo,项目名称:cas4.0.x-server-wechat,代码行数:10,代码来源:HandlerResult.java

示例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();
}
 
开发者ID:opensecuritycontroller,项目名称:osc-core,代码行数:10,代码来源:Policy.java

示例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();
}
 
开发者ID:moueimei,项目名称:flume-release-1.7.0,代码行数:12,代码来源:ThriftSourceProtocol.java

示例10: 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();
}
 
开发者ID:moueimei,项目名称:flume-release-1.7.0,代码行数:12,代码来源:Scribe.java

示例11: 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();
}
 
开发者ID:moueimei,项目名称:flume-release-1.7.0,代码行数:37,代码来源:ThriftFlumeEvent.java

示例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();
}
 
开发者ID:moueimei,项目名称:flume-release-1.7.0,代码行数:12,代码来源:ThriftFlumeEventServer.java

示例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();
}
 
开发者ID:eclipse,项目名称:keti,代码行数:15,代码来源:PolicyEvaluationRequestV1.java

示例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();
}
 
开发者ID:luotuo,项目名称:cas4.0.x-server-wechat,代码行数:6,代码来源:SimplePrincipal.java


注:本文中的org.apache.commons.lang.builder.HashCodeBuilder.append方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。