List of usage examples for org.apache.commons.lang3.builder HashCodeBuilder HashCodeBuilder
public HashCodeBuilder(final int initialOddNumber, final int multiplierOddNumber)
Two randomly chosen, odd numbers must be passed in.
From source file:com.cgi.poc.dw.exception.Error.java
@Override public int hashCode() { return new HashCodeBuilder(11, 101).append(code).append(message).toHashCode(); }
From source file:io.fourfinanceit.homework.model.Client.java
@Override public int hashCode() { if (getClientId() != null && getClientId() > 0) { return new HashCodeBuilder(11, 37).append(getClientId()).toHashCode(); } else {/*from w w w . ja v a2 s . c o m*/ return super.hashCode(); } }
From source file:models.event.EventType.java
/** * The override method for the hashcode function for EventType. * @return /*w ww.j a v a 2s.c o m*/ */ @Override public int hashCode() { return new HashCodeBuilder(17, 31).append(type).toHashCode(); }
From source file:net.mindengine.galen.validation.ValidationError.java
@Override public int hashCode() { return new HashCodeBuilder(17, 31).append(getErrorAreas()).append(messages).toHashCode(); }
From source file:de.mg.stock.server.model.SimpleDayPrice.java
@Override public int hashCode() { return new HashCodeBuilder(17, 37).append(date).append(average).toHashCode(); }
From source file:main.java.datastructure.DedupStore.java
@Override public int hashCode() { return new HashCodeBuilder(17, 31). // two randomly chosen prime numbers // if deriving: appendSuper(super.hashCode()). append(this.start).append(this.stop).toHashCode(); }
From source file:com.orange.clara.cloud.services.sandbox.domain.UserInfo.java
@Override public int hashCode() { return new HashCodeBuilder(17, 37).append(username).append(userId).toHashCode(); }
From source file:it.jaschke.alexandria.model.domain.Author.java
@Override public int hashCode() { final int initial = 1459; final int multiplier = 151; return new HashCodeBuilder(initial, multiplier).append(this.mId).append(this.mName).toHashCode(); }
From source file:it.jaschke.alexandria.model.domain.Category.java
@Override public int hashCode() { final int initial = 1087; final int multiplier = 59; return new HashCodeBuilder(initial, multiplier).append(this.mId).append(this.mName).toHashCode(); }
From source file:ch.uzh.ifi.seal.changedistiller.model.entities.AbstractHistory.java
@Override public final int hashCode() { return new HashCodeBuilder(11, 19).append(getUniqueName()) .append(new ArrayList<StructureEntityVersion>(getVersions())).toHashCode(); }