Java Code Examples for org.apache.commons.lang.builder.HashCodeBuilder.append()

The following are Jave code examples for showing how to use append() of the org.apache.commons.lang.builder.HashCodeBuilder class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: flume-release-1.7.0   File: ThriftFlumeEvent.java   View Source Code Vote up 6 votes
@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();
}
 
Example 2
Project: flume-release-1.7.0   File: LogEntry.java   View Source Code Vote up 6 votes
@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();
}
 
Example 3
Project: cas4.0.x-server-wechat   File: ImmutableAssertion.java   View Source Code Vote up 5 votes
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();
}
 
Example 4
Project: cas4.0.x-server-wechat   File: Message.java   View Source Code Vote up 5 votes
@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();
}
 
Example 5
Project: cas4.0.x-server-wechat   File: AbstractCredential.java   View Source Code Vote up 5 votes
@Override
public int hashCode() {
    final HashCodeBuilder builder = new HashCodeBuilder(11, 41);
    builder.append(getClass().getName());
    builder.append(getId());
    return builder.toHashCode();
}
 
Example 6
Project: cas4.0.x-server-wechat   File: ImmutableAuthentication.java   View Source Code Vote up 5 votes
@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();
}
 
Example 7
Project: cas4.0.x-server-wechat   File: HandlerResult.java   View Source Code Vote up 5 votes
@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();
}
 
Example 8
Project: osc-core   File: Policy.java   View Source Code Vote up 5 votes
@Override
public int hashCode() {
	HashCodeBuilder builder = new HashCodeBuilder().append(getName()).append(getId());
	if (this.applianceManagerConnector != null) {
		builder.append(this.applianceManagerConnector.getId());
	}

	return builder.toHashCode();
}
 
Example 9
Project: flume-release-1.7.0   File: ThriftSourceProtocol.java   View Source Code Vote up 5 votes
@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();
}
 
Example 10
Project: flume-release-1.7.0   File: ThriftSourceProtocol.java   View Source Code Vote up 5 votes
@Override
public int hashCode() {
  HashCodeBuilder builder = new HashCodeBuilder();

  boolean present_success = true && (isSetSuccess());
  builder.append(present_success);
  if (present_success)
    builder.append(success.getValue());

  return builder.toHashCode();
}
 
Example 11
Project: flume-release-1.7.0   File: ThriftSourceProtocol.java   View Source Code Vote up 5 votes
@Override
public int hashCode() {
  HashCodeBuilder builder = new HashCodeBuilder();

  boolean present_events = true && (isSetEvents());
  builder.append(present_events);
  if (present_events)
    builder.append(events);

  return builder.toHashCode();
}
 
Example 12
Project: flume-release-1.7.0   File: ThriftSourceProtocol.java   View Source Code Vote up 5 votes
@Override
public int hashCode() {
  HashCodeBuilder builder = new HashCodeBuilder();

  boolean present_success = true && (isSetSuccess());
  builder.append(present_success);
  if (present_success)
    builder.append(success.getValue());

  return builder.toHashCode();
}
 
Example 13
Project: flume-release-1.7.0   File: Scribe.java   View Source Code Vote up 5 votes
@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();
}
 
Example 14
Project: flume-release-1.7.0   File: Scribe.java   View Source Code Vote up 5 votes
@Override
public int hashCode() {
  HashCodeBuilder builder = new HashCodeBuilder();

  boolean present_success = true && (isSetSuccess());
  builder.append(present_success);
  if (present_success)
    builder.append(success.getValue());

  return builder.toHashCode();
}
 
Example 15
Project: flume-release-1.7.0   File: ThriftFlumeEvent.java   View Source Code Vote up 5 votes
@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();
}
 
Example 16
Project: flume-release-1.7.0   File: ThriftFlumeEventServer.java   View Source Code Vote up 5 votes
@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();
}
 
Example 17
Project: keti   File: PolicyEvaluationRequestV1.java   View Source Code Vote up 5 votes
@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();
}
 
Example 18
Project: cas4.0.x-server-wechat   File: SimplePrincipal.java   View Source Code Vote up 4 votes
public int hashCode() {
    final HashCodeBuilder builder = new HashCodeBuilder(83, 31);
    builder.append(this.id);
    return builder.toHashCode();
}