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