/** * Creates a "delta copy" of this Map, where only the differences * from the original Map are represented. (This typically assumes * that this map will no longer be changed.) */ public CollectionValuedMap<K, V> deltaCopy() { Map<K,Collection<V>> deltaMap = new DeltaMap<>(this.map); return new CollectionValuedMap<>(null, cf, true, deltaMap); }
/** * Creates a "delta clone" of this Map, where only the differences are * represented. */ public CollectionValuedMap<K, V> deltaClone() { CollectionValuedMap<K, V> result = new CollectionValuedMap<K, V>(null, cf, true); result.map = new DeltaMap<K, Collection<V>>(this.map); return result; }
/** * Creates a "delta copy" of this Map, where only the differences * from the original Map are represented. (This typically assumes * that this map will no longer be changed.) */ public CollectionValuedMap<K, V> deltaCopy() { Map<K,Collection<V>> deltaMap = new DeltaMap<>(this.map); return new CollectionValuedMap<>(null, cf, true, deltaMap); }
/** * Creates a "delta copy" of this Map, where only the differences * from the original Map are represented. (This typically assumes * that this map will no longer be changed.) */ public CollectionValuedMap<K, V> deltaCopy() { Map<K,Collection<V>> deltaMap = new DeltaMap<>(this.map); return new CollectionValuedMap<>(null, cf, true, deltaMap); }
/** * Creates a "delta clone" of this Map, where only the differences are represented. */ public CollectionValuedMap<K, V> deltaClone() { CollectionValuedMap<K, V> result = new CollectionValuedMap<K, V>(null, cf, true); result.map = new DeltaMap<K, Collection<V>>(this.map); return result; }
Map<Integer,Integer> deltaMap = new DeltaMap<Integer,Integer>(originalMap);
Map<Integer,Integer> deltaMap = new DeltaMap<Integer,Integer>(originalMap);