List of usage examples for org.apache.commons.lang3.builder HashCodeBuilder toHashCode
public int toHashCode()
Return the computed hashCode
.
From source file:ubic.gemma.model.expression.experiment.FactorValue.java
@Override public int hashCode() { if (this.getId() != null) return this.getId().hashCode(); HashCodeBuilder builder = new HashCodeBuilder(17, 7).append(this.getExperimentalFactor()) .append(this.getMeasurement()); if (this.getCharacteristics() != null) { for (Characteristic c : this.getCharacteristics()) { if (c == null) { continue; }//from ww w . ja v a 2s . c om assert c != null; builder.append(c.hashCode()); } } return builder.toHashCode(); }