/** * @param value the value to remove * @return true if the value was present, false otherwise */ public boolean remove(final Object value) { final Object[] values = this.values; final int mask = values.length - 1; int index = value.hashCode() & mask; while (values[index] != MISSING_VALUE) { if (values[index].equals(value)) { values[index] = MISSING_VALUE; compactChain(index); size--; return true; } index = next(index, mask); } return false; }
/** * @param value the value to remove * @return true if the value was present, false otherwise */ public boolean remove(final Object value) { final Object[] values = this.values; final int mask = values.length - 1; int index = value.hashCode() & mask; while (values[index] != MISSING_VALUE) { if (values[index].equals(value)) { values[index] = MISSING_VALUE; compactChain(index); size--; return true; } index = next(index, mask); } return false; }
/** * @param value the value to remove * @return true if the value was present, false otherwise */ public boolean remove(final Object value) { final Object[] values = this.values; final int mask = values.length - 1; int index = value.hashCode() & mask; while (values[index] != MISSING_VALUE) { if (values[index].equals(value)) { values[index] = MISSING_VALUE; compactChain(index); size--; return true; } index = next(index, mask); } return false; }