return map.toImmutable();
}
public ImmutableDoubleIntMap newWithoutAllKeys(DoubleIterable keys)
{
MutableDoubleIntMap map = new DoubleIntHashMap(this.size());
map.putAll(this);
DoubleIterator iterator = keys.doubleIterator();
while (iterator.hasNext())
{
map.removeKey(iterator.next());
}
return map.toImmutable();
}