public boolean retainAll(DoubleIterable source)
{
int oldSize = this.size();
final DoubleSet sourceSet = source instanceof DoubleSet ? (DoubleSet) source : source.toSet();
CharDoubleHashMap retained = CharDoubleHashMap.this.select(new CharDoublePredicate()
{
public boolean accept(char key, double value)
{
return sourceSet.contains(value);
}