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