in core/src/main/java/gnu/trove/TLongObjectHashMap.java [518:539]
public boolean containsValue(V val) {
V[] values = _values;
// special case null values so that we don't have to
// perform null checks before every call to equals()
if (null == val) {
for (int i = values.length; i-- > 0; ) {
if (TObjectHash.NULL == values[i]) {
return true;
}
}
}
else {
for (int i = values.length; i-- > 0; ) {
V value = unwrapNull(values[i]);
if (isFull(values, i) && (val == value || val.equals(value))) {
return true;
}
}
}
return false;
}