Package com.google.common.collect
Class Maps.SortedMapDifferenceImpl<K,V>
- java.lang.Object
-
- com.google.common.collect.Maps.MapDifferenceImpl<K,V>
-
- com.google.common.collect.Maps.SortedMapDifferenceImpl<K,V>
-
- All Implemented Interfaces:
MapDifference<K,V>
,SortedMapDifference<K,V>
- Enclosing class:
- Maps
static class Maps.SortedMapDifferenceImpl<K,V> extends Maps.MapDifferenceImpl<K,V> implements SortedMapDifference<K,V>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.google.common.collect.MapDifference
MapDifference.ValueDifference<V>
-
-
Field Summary
-
Fields inherited from class com.google.common.collect.Maps.MapDifferenceImpl
differences, onBoth, onlyOnLeft, onlyOnRight
-
-
Constructor Summary
Constructors Constructor 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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class com.google.common.collect.Maps.MapDifferenceImpl
areEqual, equals, hashCode, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.google.common.collect.MapDifference
areEqual, equals, hashCode
-
-
-
-
Method Detail
-
entriesDiffering
public java.util.SortedMap<K,MapDifference.ValueDifference<V>> entriesDiffering()
Description copied from interface:MapDifference
Returns an unmodifiable map describing keys that appear in both maps, but with different values.- Specified by:
entriesDiffering
in interfaceMapDifference<K,V>
- Specified by:
entriesDiffering
in interfaceSortedMapDifference<K,V>
- Overrides:
entriesDiffering
in classMaps.MapDifferenceImpl<K,V>
-
entriesInCommon
public java.util.SortedMap<K,V> entriesInCommon()
Description copied from interface:MapDifference
Returns an unmodifiable map containing the entries that appear in both maps; that is, the intersection of the two maps.- Specified by:
entriesInCommon
in interfaceMapDifference<K,V>
- Specified by:
entriesInCommon
in interfaceSortedMapDifference<K,V>
- Overrides:
entriesInCommon
in classMaps.MapDifferenceImpl<K,V>
-
entriesOnlyOnLeft
public java.util.SortedMap<K,V> entriesOnlyOnLeft()
Description copied from interface:MapDifference
Returns an unmodifiable map containing the entries from the left map whose keys are not present in the right map.- Specified by:
entriesOnlyOnLeft
in interfaceMapDifference<K,V>
- Specified by:
entriesOnlyOnLeft
in interfaceSortedMapDifference<K,V>
- Overrides:
entriesOnlyOnLeft
in classMaps.MapDifferenceImpl<K,V>
-
entriesOnlyOnRight
public java.util.SortedMap<K,V> entriesOnlyOnRight()
Description copied from interface:MapDifference
Returns an unmodifiable map containing the entries from the right map whose keys are not present in the left map.- Specified by:
entriesOnlyOnRight
in interfaceMapDifference<K,V>
- Specified by:
entriesOnlyOnRight
in interfaceSortedMapDifference<K,V>
- Overrides:
entriesOnlyOnRight
in classMaps.MapDifferenceImpl<K,V>
-
-