Interface IMapDiff<K,V>
- Type Parameters:
K- Type of the map's keys.V- Type of the map's values.
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
MapDiff
Represents the different between two
Maps, i.e. when comparing two maps m1 and m2, which keys were removed,
which keys were added, and which values were changed.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceRepresents a value that was changed, used bygetModifiedEntries(). -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyBackward(Map<K, V> map) Applies the diff represented by this instance to the given map.voidapplyForward(Map<? super K, ? super V> map) Applies the diff represented by this instance to the given map.
-
Method Details
-
applyBackward
-
applyForward
-
getAddedEntries
-
getModifiedEntries
Map<K, IMapDiff.IModifiedValue<V>> getModifiedEntries()- Returns:
- A map with the keys of the modified entries, together with the old and new value for each key.
-
getRemovedEntries
-