static class Maps.SortedMapDifferenceImpl<K,V> extends Maps.MapDifferenceImpl<K,V> implements SortedMapDifference<K,V>
MapDifference.ValueDifference<V>
differences, onBoth, onlyOnLeft, onlyOnRight
Constructor and Description |
---|
SortedMapDifferenceImpl(java.util.SortedMap<K,V> onlyOnLeft,
java.util.SortedMap<K,V> onlyOnRight,
java.util.SortedMap<K,V> onBoth,
java.util.SortedMap<K,MapDifference.ValueDifference<V>> differences) |
Modifier and Type | Method and Description |
---|---|
java.util.SortedMap<K,MapDifference.ValueDifference<V>> |
entriesDiffering()
Returns an unmodifiable map describing keys that appear in both maps, but
with different values.
|
java.util.SortedMap<K,V> |
entriesInCommon()
Returns an unmodifiable map containing the entries that appear in both
maps; that is, the intersection of the two maps.
|
java.util.SortedMap<K,V> |
entriesOnlyOnLeft()
Returns an unmodifiable map containing the entries from the left map whose
keys are not present in the right map.
|
java.util.SortedMap<K,V> |
entriesOnlyOnRight()
Returns an unmodifiable map containing the entries from the right map whose
keys are not present in the left map.
|
areEqual, equals, hashCode, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
areEqual, equals, hashCode
public java.util.SortedMap<K,MapDifference.ValueDifference<V>> entriesDiffering()
MapDifference
entriesDiffering
in interface MapDifference<K,V>
entriesDiffering
in interface SortedMapDifference<K,V>
entriesDiffering
in class Maps.MapDifferenceImpl<K,V>
public java.util.SortedMap<K,V> entriesInCommon()
MapDifference
entriesInCommon
in interface MapDifference<K,V>
entriesInCommon
in interface SortedMapDifference<K,V>
entriesInCommon
in class Maps.MapDifferenceImpl<K,V>
public java.util.SortedMap<K,V> entriesOnlyOnLeft()
MapDifference
entriesOnlyOnLeft
in interface MapDifference<K,V>
entriesOnlyOnLeft
in interface SortedMapDifference<K,V>
entriesOnlyOnLeft
in class Maps.MapDifferenceImpl<K,V>
public java.util.SortedMap<K,V> entriesOnlyOnRight()
MapDifference
entriesOnlyOnRight
in interface MapDifference<K,V>
entriesOnlyOnRight
in interface SortedMapDifference<K,V>
entriesOnlyOnRight
in class Maps.MapDifferenceImpl<K,V>