}
public boolean retainAll(DoubleIterable source)
{
int oldSize = ObjectDoubleHashMap.this.size();
final DoubleSet sourceSet = source instanceof DoubleSet ? (DoubleSet) source : source.toSet();
ObjectDoubleHashMap<K> retained = ObjectDoubleHashMap.this.select(new ObjectDoublePredicate<K>()
{
public boolean accept(K object, double value)
{
return sourceSet.contains(value);
}
});
if (retained.size() != oldSize)
{
ObjectDoubleHashMap.this.keys = retained.keys;