@Override @Nonnull public <V2 extends V> UpdatableQHashSeparateKVIntObjMapGO<V2> newUpdatableMap( Map<Integer, ? extends V2> map) { return shrunk(super.<V2>newUpdatableMap(map)); }
@Override @Nonnull public <V2 extends V> UpdatableQHashSeparateKVIntObjMapGO<V2> newUpdatableMap( Map<Integer, ? extends V2> map) { return shrunk(super.<V2>newUpdatableMap(map)); }
@Override @Nonnull public <V2 extends V> UpdatableQHashSeparateKVIntObjMapGO<V2> newUpdatableMap( Map<Integer, ? extends V2> map) { if (map instanceof IntObjMap) { if (map instanceof SeparateKVIntObjQHash) { SeparateKVIntObjQHash hash = (SeparateKVIntObjQHash) map; if (hash.hashConfig().equals(hashConf)) { UpdatableQHashSeparateKVIntObjMapGO<V2> res = uninitializedUpdatableMap(); res.copy(hash); return res; } } UpdatableQHashSeparateKVIntObjMapGO<V2> res = newUpdatableMap(map.size()); res.putAll(map); return res; } UpdatableQHashSeparateKVIntObjMapGO<V2> res = newUpdatableMap(map.size()); for (Map.Entry<Integer, ? extends V2> entry : map.entrySet()) { res.put(entry.getKey(), entry.getValue()); } return res; } }
@Override @Nonnull public <V2 extends V> UpdatableQHashSeparateKVIntObjMapGO<V2> newUpdatableMap( Map<Integer, ? extends V2> map) { if (map instanceof IntObjMap) { if (map instanceof SeparateKVIntObjQHash) { SeparateKVIntObjQHash hash = (SeparateKVIntObjQHash) map; if (hash.hashConfig().equals(hashConf)) { UpdatableQHashSeparateKVIntObjMapGO<V2> res = uninitializedUpdatableMap(); res.copy(hash); return res; } } UpdatableQHashSeparateKVIntObjMapGO<V2> res = newUpdatableMap(map.size()); res.putAll(map); return res; } UpdatableQHashSeparateKVIntObjMapGO<V2> res = newUpdatableMap(map.size()); for (Map.Entry<Integer, ? extends V2> entry : map.entrySet()) { res.put(entry.getKey(), entry.getValue()); } return res; } }