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, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitareEqual, equals, hashCodepublic java.util.SortedMap<K,MapDifference.ValueDifference<V>> entriesDiffering()
MapDifferenceentriesDiffering 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()
MapDifferenceentriesInCommon 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()
MapDifferenceentriesOnlyOnLeft 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()
MapDifferenceentriesOnlyOnRight in interface MapDifference<K,V>entriesOnlyOnRight in interface SortedMapDifference<K,V>entriesOnlyOnRight in class Maps.MapDifferenceImpl<K,V>