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