237238239240241242243244245246247
public ImmutableShortBooleanMap newWithoutKey(short key) { MutableShortBooleanMap map = new ShortBooleanHashMap(this.size()); map.putAll(this); map.removeKey(key); return map.toImmutable(); } public ImmutableShortBooleanMap newWithoutAllKeys(ShortIterable keys) {
248249250251252253254255256257258
MutableShortBooleanMap map = new ShortBooleanHashMap(this.size()); map.putAll(this); ShortIterator iterator = keys.shortIterator(); while (iterator.hasNext()) { map.removeKey(iterator.next()); } return map.toImmutable(); } public int size()