}
public boolean retainAll(DoubleIterable source)
{
int oldSize = this.size();
final DoubleSet sourceSet = source instanceof DoubleSet ? (DoubleSet) source : source.toSet();
ShortDoubleHashMap retained = ShortDoubleHashMap.this.select(new ShortDoublePredicate()
{
public boolean accept(short key, double value)
{
return sourceSet.contains(value);
}
});
if (retained.size() != oldSize)
{
ShortDoubleHashMap.this.keys = retained.keys;