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

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

Introduction

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

Prototype

public HashCodeBuilder append(final short[] array) 

Source Link

Document

Append a hashCode for a short array.

Usage

From source file:br.com.autonomiccs.apacheCloudStack.client.ApacheCloudStackApiCommandParameterTest.java

@Test
public void hashCodeTest() {
    ApacheCloudStackApiCommandParameter apacheCloudStackApiCommandParameter = new ApacheCloudStackApiCommandParameter(
            "param1", "value");
    HashCodeBuilder hashCodeBuilder = new HashCodeBuilder();
    hashCodeBuilder.append("param1");

    Assert.assertEquals(hashCodeBuilder.toHashCode(), apacheCloudStackApiCommandParameter.hashCode());

}

From source file:com.marand.thinkmed.api.core.data.object.IdentityDto.java

@Override
public int hashCode() {
    if (id > 0) {
        final HashCodeBuilder builder = new HashCodeBuilder();
        builder.append(id);

        return builder.toHashCode();
    } else {/*from w  w w  .j a v a 2 s . com*/
        return super.hashCode();
    }
}

From source file:edu.oregonstate.eecs.mcplan.Pair.java

@Override
public int hashCode() {
    final HashCodeBuilder hb = new HashCodeBuilder();
    hb.append(first);
    hb.append(second);//from w ww  .j  a  v a2s  .  c o m
    return hb.toHashCode();
}

From source file:br.com.autonomiccs.apacheCloudStack.client.ApacheCloudStackApiCommandParameter.java

/**
 * The hashcode is following the same idea as the {@link #compareTo(ApacheCloudStackApiCommandParameter)} method.
 *//* w  w w .j  av a2s .c o m*/
@Override
public int hashCode() {
    HashCodeBuilder hashCodeBuilder = new HashCodeBuilder();
    hashCodeBuilder.append(this.name);
    return hashCodeBuilder.toHashCode();
}

From source file:de.bstreit.java.oscr.business.offers.AbstractOffer.java

@Override
 protected final void additionalHashcodeForSubclasses(HashCodeBuilder builder) {
     builder.append(offeredItem);
 }

From source file:concept.model.Fact.java

@Override
public int hashCode() {
    final HashCodeBuilder builder = new HashCodeBuilder();
    builder.append(this.getName());
    builder.append(this.getMatcher());
    return builder.hashCode();
}

From source file:com.matthewtamlin.soundsword.Song.java

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

From source file:de.perdian.apps.dashboard.mvc.modules.jenkins.JenkinsControllerRequest.java

@Override
public int hashCode() {
    HashCodeBuilder hashCodeBuilder = new HashCodeBuilder();
    hashCodeBuilder.append(this.getJobName());
    hashCodeBuilder.append(this.getPassword());
    hashCodeBuilder.append(this.getUrl());
    hashCodeBuilder.append(this.getUsername());
    return hashCodeBuilder.toHashCode();
}

From source file:de.perdian.apps.dashboard.mvc.modules.sonar.SonarControllerRequest.java

@Override
public int hashCode() {
    HashCodeBuilder hashCodeBuilder = new HashCodeBuilder();
    hashCodeBuilder.append(this.getPassword());
    hashCodeBuilder.append(this.getProjectName());
    hashCodeBuilder.append(this.getUrl());
    hashCodeBuilder.append(this.getUsername());
    return hashCodeBuilder.toHashCode();
}

From source file:com.github.jgility.core.planning.Iteration.java

@Override
public int hashCode() {
    HashCodeBuilder builder = new HashCodeBuilder();
    builder.append(super.hashCode());
    builder.append(iterationBacklog);/* ww  w  .j a v  a2 s  . co  m*/
    return builder.toHashCode();
}