@Override public int hashCode() { // Build a hash code from characteristics if (this.characteristics.size() == 0) return 0; Iterator<CharacteristicWritable> iter = this.getCharacteristics(); int hash = 17; while (iter.hasNext()) { hash = hash * 31 + iter.next().hashCode(); } return hash; }
@Override public int hashCode() { // Build a hash code from characteristics if (this.characteristics.size() == 0) return 0; Iterator<CharacteristicWritable> iter = this.getCharacteristics(); int hash = 17; while (iter.hasNext()) { hash = hash * 31 + iter.next().hashCode(); } return hash; }