282283284285286287288289290291292
public ImmutableDoubleShortMap newWithoutKey(double key) { MutableDoubleShortMap map = new DoubleShortHashMap(this.size()); map.putAll(this); map.removeKey(key); return map.toImmutable(); } public ImmutableDoubleShortMap newWithoutAllKeys(DoubleIterable keys) {
293294295296297298299300301302303
MutableDoubleShortMap map = new DoubleShortHashMap(this.size()); map.putAll(this); DoubleIterator iterator = keys.doubleIterator(); while (iterator.hasNext()) { map.removeKey(iterator.next()); } return map.toImmutable(); } public int size()