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

The following examples show how to use org.apache.commons.lang3.builder.HashCodeBuilder#append() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: CfSplit.java    From stratio-cassandra with Apache License 2.0 6 votes vote down vote up
@Override
public int hashCode() {
  HashCodeBuilder builder = new HashCodeBuilder();

  boolean present_start_token = true && (isSetStart_token());
  builder.append(present_start_token);
  if (present_start_token)
    builder.append(start_token);

  boolean present_end_token = true && (isSetEnd_token());
  builder.append(present_end_token);
  if (present_end_token)
    builder.append(end_token);

  boolean present_row_count = true;
  builder.append(present_row_count);
  if (present_row_count)
    builder.append(row_count);

  return builder.toHashCode();
}
 
Example 2
Source File: FlutterOutline.java    From flutter-intellij with BSD 3-Clause "New" or "Revised" License 6 votes vote down vote up
@Override
public int hashCode() {
  HashCodeBuilder builder = new HashCodeBuilder();
  builder.append(kind);
  builder.append(offset);
  builder.append(length);
  builder.append(codeOffset);
  builder.append(codeLength);
  builder.append(label);
  builder.append(dartElement);
  builder.append(attributes);
  builder.append(className);
  builder.append(parentAssociationLabel);
  builder.append(variableName);
  builder.append(children);
  return builder.toHashCode();
}
 
Example 3
Source File: EuclideanVertex.java    From jstarcraft-ai with Apache License 2.0 5 votes vote down vote up
@Override
public int hashCode() {
    HashCodeBuilder hash = new HashCodeBuilder();
    hash.append(vertexName);
    hash.append(epsilon);
    return hash.toHashCode();
}
 
Example 4
Source File: Integer2LongKeyValue.java    From jstarcraft-core with Apache License 2.0 5 votes vote down vote up
@Override
public int hashCode() {
    HashCodeBuilder hash = new HashCodeBuilder();
    hash.append(key);
    hash.append(value);
    return hash.toHashCode();
}
 
Example 5
Source File: AuthenticationRequest.java    From stratio-cassandra with Apache License 2.0 5 votes vote down vote up
@Override
public int hashCode() {
  HashCodeBuilder builder = new HashCodeBuilder();

  boolean present_credentials = true && (isSetCredentials());
  builder.append(present_credentials);
  if (present_credentials)
    builder.append(credentials);

  return builder.toHashCode();
}
 
Example 6
Source File: RandomizationListCodeRowProcessor.java    From ctsms with GNU Lesser General Public License v2.1 5 votes vote down vote up
@Override
protected int lineHashCode(String[] values) {
	HashCodeBuilder hb = new HashCodeBuilder(1249046965, -82296885);
	Iterator<Integer> stratificationTagIndexIt = stratificationTagIndexMap.keySet().iterator();
	while (stratificationTagIndexIt.hasNext()) {
		hb.append(getColumnValue(values, stratificationTagIndexIt.next()));
	}
	hb.append(getCode(values));
	return hb.toHashCode();
}
 
Example 7
Source File: CsvObject.java    From jstarcraft-core with Apache License 2.0 5 votes vote down vote up
@Override
public int hashCode() {
    HashCodeBuilder hash = new HashCodeBuilder();
    hash.append(id);
    hash.append(firstName);
    hash.append(lastName);
    hash.append(money);
    hash.append(instant);
    hash.append(race);
    hash.append(list);
    return hash.toHashCode();
}
 
Example 8
Source File: HibernateApiMultiEagerCollectionFetchStrategyTest.java    From hibernate-master-class with Apache License 2.0 5 votes vote down vote up
@Override
public int hashCode() {
    HashCodeBuilder hcb = new HashCodeBuilder();
    hcb.append(type);
    hcb.append(image);
    return hcb.toHashCode();
}
 
Example 9
Source File: UtilityInfo.java    From sailfish-core with Apache License 2.0 5 votes vote down vote up
@Override
public int hashCode() {
    HashCodeBuilder builder = new HashCodeBuilder();

    builder.append(uri);
    builder.append(parameterNames);
    builder.append(parameterTypes);
    builder.append(returnType);
    builder.append(description);

    return builder.toHashCode();
}
 
Example 10
Source File: RepoInfo.java    From uyuni with GNU General Public License v2.0 5 votes vote down vote up
/**
 * {@inheritDoc}
 */
@Override
public int hashCode() {
    HashCodeBuilder builder = new HashCodeBuilder();
    builder.append(name);
    builder.append(baseUrl);
    return builder.toHashCode();
}
 
Example 11
Source File: KickstartCommandName.java    From uyuni with GNU General Public License v2.0 5 votes vote down vote up
/**
 * {@inheritDoc}
 */
@Override
public int hashCode() {
    HashCodeBuilder builder = new HashCodeBuilder();
    builder.append(getName());
    builder.append(getArgs());
    builder.append(getOrder());
    builder.append(getRequired());
    return builder.toHashCode();
}
 
Example 12
Source File: InverseSchedule.java    From jstarcraft-ai with Apache License 2.0 5 votes vote down vote up
@Override
public int hashCode() {
    HashCodeBuilder hash = new HashCodeBuilder();
    hash.append(scheduleType);
    hash.append(initialValue);
    hash.append(gamma);
    hash.append(power);
    return hash.toHashCode();
}
 
Example 13
Source File: SailfishURI.java    From sailfish-core with Apache License 2.0 5 votes vote down vote up
@Override
public int hashCode() {
    HashCodeBuilder builder = new HashCodeBuilder();

    builder.append(StringUtils.lowerCase(pluginAlias));
    builder.append(StringUtils.lowerCase(classAlias));
    builder.append(StringUtils.lowerCase(resourceName));

    return builder.toHashCode();
}
 
Example 14
Source File: NadamLearner.java    From jstarcraft-ai with Apache License 2.0 5 votes vote down vote up
@Override
public int hashCode() {
    HashCodeBuilder hash = new HashCodeBuilder();
    hash.append(beta1);
    hash.append(beta2);
    hash.append(epsilon);
    hash.append(learnSchedule);
    return hash.toHashCode();
}
 
Example 15
Source File: ColumnDef.java    From stratio-cassandra with Apache License 2.0 5 votes vote down vote up
@Override
public int hashCode() {
  HashCodeBuilder builder = new HashCodeBuilder();

  boolean present_name = true && (isSetName());
  builder.append(present_name);
  if (present_name)
    builder.append(name);

  boolean present_validation_class = true && (isSetValidation_class());
  builder.append(present_validation_class);
  if (present_validation_class)
    builder.append(validation_class);

  boolean present_index_type = true && (isSetIndex_type());
  builder.append(present_index_type);
  if (present_index_type)
    builder.append(index_type.getValue());

  boolean present_index_name = true && (isSetIndex_name());
  builder.append(present_index_name);
  if (present_index_name)
    builder.append(index_name);

  boolean present_index_options = true && (isSetIndex_options());
  builder.append(present_index_options);
  if (present_index_options)
    builder.append(index_options);

  return builder.toHashCode();
}
 
Example 16
Source File: ScriptContext.java    From jstarcraft-core with Apache License 2.0 5 votes vote down vote up
@Override
public int hashCode() {
    HashCodeBuilder hash = new HashCodeBuilder();
    hash.append(contextClasses);
    hash.append(contextMethods);
    return hash.toHashCode();
}
 
Example 17
Source File: ContactDetail.java    From jpa-unit with Apache License 2.0 5 votes vote down vote up
@Override
public int hashCode() {
    final HashCodeBuilder builder = new HashCodeBuilder();
    builder.append(type);
    builder.append(value);
    return builder.toHashCode();
}
 
Example 18
Source File: Alert.java    From sailfish-core with Apache License 2.0 5 votes vote down vote up
@Override
public int hashCode() {
    HashCodeBuilder builder = new HashCodeBuilder();
    
    builder.append(super.hashCode());
    builder.append(line);
    builder.append(reference);
    
    return builder.toHashCode();
}
 
Example 19
Source File: MockRegionObject.java    From jstarcraft-core with Apache License 2.0 4 votes vote down vote up
@Override
public int hashCode() {
    HashCodeBuilder hash = new HashCodeBuilder();
    hash.append(id);
    return hash.toHashCode();
}
 
Example 20
Source File: Person.java    From jstarcraft-core with Apache License 2.0 4 votes vote down vote up
@Override
public int hashCode() {
    HashCodeBuilder hash = new HashCodeBuilder();
    hash.append(getId());
    return hash.toHashCode();
}