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(final int initialOddNumber, final int multiplierOddNumber) 

Source Link

Document

Two randomly chosen, odd numbers must be passed in.

Usage

From source file:gov.ca.cwds.cals.service.dto.LicenseStatusTypeDto.java

@Override
public int hashCode() {
    return new HashCodeBuilder(17, 37).append(getCode()).append(getDescription()).append(isActive).toHashCode();
}

From source file:Entidades.ExercicioFichaPK.java

@Override
public int hashCode() {
    return new HashCodeBuilder(17, 31). // two randomly chosen prime numbers
    // if deriving: appendSuper(super.hashCode()).
            append(codigoFicha).append(codigoExercicio).toHashCode();
}

From source file:com.cz4031.entity.Author.java

@Override
public int hashCode() {
    //        final int prime = 31;
    //        int result = 1;
    //        result = prime * result + ((name == null) ? 0 : name.hashCode());
    //        return result;
    return new HashCodeBuilder(17, 31). // two randomly chosen prime numbers
    // if deriving: appendSuper(super.hashCode()).
            append(name).toHashCode();/*from w  w  w  .j av a 2  s  . c om*/
}

From source file:com.galenframework.specs.SpecAbsent.java

@Override
public int hashCode() {
    return new HashCodeBuilder(17, 31).toHashCode();
}

From source file:fm.last.musicbrainz.data.model.ReleaseCountryCompositeKey.java

@Override
public int hashCode() {
    return new HashCodeBuilder(2305, 2013).append(release).append(country).toHashCode();
}

From source file:fm.last.musicbrainz.data.model.ArtistCreditNameCompositeKey.java

@Override
public int hashCode() {
    return new HashCodeBuilder(2105, 2011).append(artistCredit).append(position).toHashCode();
}

From source file:com.zextras.modules.chat.server.history.Participants.java

@Override
public int hashCode() {
    return new HashCodeBuilder(17, 31).append(mSender).append(mRecipient).toHashCode();
}

From source file:bz.tsung.jsonapi4j.models.ResourceIdentifier.java

@Override
public int hashCode() {
    return new HashCodeBuilder(17, 37).append(type).append(id).toHashCode();
}

From source file:de.uniwue.info6.misc.Password.java

@Override
public int hashCode() {
    return new HashCodeBuilder(17, 31).append(password).toHashCode();
}

From source file:com.galenframework.specs.SpecRange.java

@Override
public int hashCode() {
    return new HashCodeBuilder(17, 31).append(range).toHashCode();
}