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