/** * Primitive specialised overload of {this#add(Long)} * * @param value the value to add * @return true if the collection has changed, false otherwise */ public boolean add(final long value) { final long[] values = this.values; @DoNotSub final int mask = values.length - 1; @DoNotSub int index = Hashing.hash(value, mask); while (values[index] != missingValue) { if (values[index] == value) { return false; } index = next(index, mask); } values[index] = value; size++; if (size > resizeThreshold) { increaseCapacity(); } return true; }