}
public boolean retainAll(BooleanIterable source)
{
int oldSize = DoubleBooleanHashMap.this.size();
final BooleanSet sourceSet = source instanceof BooleanSet ? (BooleanSet) source : source.toSet();
DoubleBooleanHashMap retained = DoubleBooleanHashMap.this.select(new DoubleBooleanPredicate()
{
public boolean accept(double key, boolean value)
{
return sourceSet.contains(value);
}
});
if (retained.size() != oldSize)
{
DoubleBooleanHashMap.this.keys = retained.keys;