|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.omnaest.utils.structure.map.MapDelta<K,V>
K - V - public class MapDelta<K,V>
A MapDelta will calculate the SetDelta of the Map.keySet() and the delta between the values of the
retained keyset.
MapUtils.delta(Map, Map),
SetUtils.delta(Set, Set)| Nested Class Summary | |
|---|---|
static class |
MapDelta.Values<V>
Holds the value of the first and second map |
| Constructor Summary | |
|---|---|
MapDelta(Map<K,V> firstMap,
Map<K,V> secondMap)
|
|
| Method Summary | |
|---|---|
boolean |
areEqual()
Returns true, if the given Maps are equals(Object) in key and values |
boolean |
equals(Object obj)
|
SetDelta<K> |
getKeySetDelta()
Returns the SetDelta of the Map.keySet() |
Map<K,V> |
getRetainedKeyToEqualValueMap()
Returns a Map with all retained keys between the first and second map which have not changed their value |
Map<K,MapDelta.Values<V>> |
getRetainedKeyToUnequalValuesMap()
Returns a Map with all retained keys between the first and second map which have changed their value |
int |
hashCode()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MapDelta(Map<K,V> firstMap,
Map<K,V> secondMap)
firstMap - secondMap - MapDelta| Method Detail |
|---|
public Map<K,MapDelta.Values<V>> getRetainedKeyToUnequalValuesMap()
Map with all retained keys between the first and second map which have changed their value
MapDelta.Valuespublic Map<K,V> getRetainedKeyToEqualValueMap()
Map with all retained keys between the first and second map which have not changed their value
public SetDelta<K> getKeySetDelta()
SetDelta of the Map.keySet()
SetDeltapublic boolean areEqual()
Maps are equals(Object) in key and values
public String toString()
toString in class Objectpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||