Example usage for org.apache.commons.lang3.builder HashCodeBuilder HashCodeBuilder

List of usage examples for org.apache.commons.lang3.builder HashCodeBuilder HashCodeBuilder

Introduction

In this page you can find the example usage for org.apache.commons.lang3.builder HashCodeBuilder HashCodeBuilder.

Prototype

public HashCodeBuilder() 

Source Link

Document

Uses two hard coded choices for the constants needed to build a hashCode.

Usage

From source file:com.galenframework.ide.tests.integration.mocks.MockKey.java

@Override
public int hashCode() {
    return new HashCodeBuilder().append(uniqueKey).append(mockName).toHashCode();
}

From source file:de.perdian.apps.dashboard.mvc.modules.project.ProjectControllerRequest.java

@Override
public int hashCode() {
    HashCodeBuilder hashCodeBuilder = new HashCodeBuilder();
    hashCodeBuilder.append(this.getJenkinsJobName());
    hashCodeBuilder.append(this.getJenkinsPassword());
    hashCodeBuilder.append(this.getJenkinsUrl());
    hashCodeBuilder.append(this.getJenkinsUsername());
    hashCodeBuilder.append(this.getSonarPassword());
    hashCodeBuilder.append(this.getSonarProjectName());
    hashCodeBuilder.append(this.getSonarUrl());
    hashCodeBuilder.append(this.getSonarUsername());
    return hashCodeBuilder.toHashCode();
}

From source file:com.evrythng.commons.domain.Value.java

@Override
public final int hashCode() {

    HashCodeBuilder hashCode = new HashCodeBuilder();
    hashCode.append(value);/*from   w w w .java  2  s .c  o  m*/
    return hashCode.build();
}

From source file:io.knotx.adapter.common.http.ServiceMetadata.java

@Override
public int hashCode() {
    return new HashCodeBuilder().append(path).append(domain).append(port).toHashCode();
}

From source file:com.antonjohansson.elasticsearchshell.domain.index.IndexStatsResult.java

@Override
public int hashCode() {
    return new HashCodeBuilder().append(indices).toHashCode();
}

From source file:ch.aonyx.broker.ib.api.data.historical.TimeSpan.java

@Override
public int hashCode() {
    return new HashCodeBuilder().append(duration).append(unit).toHashCode();
}

From source file:ductive.commons.Pair.java

@Override
public int hashCode() {
    return new HashCodeBuilder().append(a).append(b).toHashCode();
}

From source file:bad.robot.excel.AbstractValueType.java

@Override
public int hashCode() {
    return new HashCodeBuilder().append(value()).toHashCode();
}

From source file:name.martingeisse.stackd.common.geometry.BaseVector2d.java

/**
 * Helper method to implement {@link #hashCode()}. Produces a hash code from the fields in the base data class.
 * @return the hash code// w ww .j  a v  a2s .  co  m
 */
protected final int baseFieldsHashCode() {
    return new HashCodeBuilder().append(x).append(y).toHashCode();
}

From source file:br.usp.poli.lta.cereda.wirth2ape.ape.Action.java

@Override
public int hashCode() {
    return new HashCodeBuilder().append(name).build();
}