Top Description Methods
com.google.common.collect

public Interface SortedMapDifference<K extends @Nullable Object, V extends @Nullable Object>

extends MapDifference<K extends @Nullable Object, V extends @Nullable Object>
Known Direct Implementers
com.google.common.collect.Maps.SortedMapDifferenceImpl
Annotations
@GwtCompatible
@ElementTypesAreNonnullByDefault
Imports
com.google.common.annotations.GwtCompatible, java.util.SortedMap, org.checkerframework.checker.nullness.qual.Nullable

An object representing the differences between two sorted maps.
Author
Louis Wasserman
Since
8.0

Method Summary

Modifier and TypeMethod and Description
public SortedMap<K, MapDifference.ValueDifference<V>>
entriesDiffering()

Redeclares com.google.common.collect.MapDifference.entriesDiffering.

Returns an unmodifiable map describing keys that appear in both maps, but with different values.
public SortedMap<K, V>
entriesInCommon()

Redeclares com.google.common.collect.MapDifference.entriesInCommon.

Returns an unmodifiable map containing the entries that appear in both maps; that is, the intersection of the two maps.
public SortedMap<K, V>
entriesOnlyOnLeft()

Redeclares com.google.common.collect.MapDifference.entriesOnlyOnLeft.

Returns an unmodifiable map containing the entries from the left map whose keys are not present in the right map.
public SortedMap<K, V>
entriesOnlyOnRight()

Redeclares com.google.common.collect.MapDifference.entriesOnlyOnRight.

Returns an unmodifiable map containing the entries from the right map whose keys are not present in the left map.
Inherited from com.google.common.collect.MapDifference:
areEqualequalshashCode

Method Detail

entriesDifferingback to summary
public SortedMap<K, MapDifference.ValueDifference<V>> entriesDiffering()

Redeclares com.google.common.collect.MapDifference.entriesDiffering.

Doc from com.google.common.collect.MapDifference.entriesDiffering.

Returns an unmodifiable map describing keys that appear in both maps, but with different values.

Annotations
@Override
entriesInCommonback to summary
public SortedMap<K, V> entriesInCommon()

Redeclares com.google.common.collect.MapDifference.entriesInCommon.

Doc from com.google.common.collect.MapDifference.entriesInCommon.

Returns an unmodifiable map containing the entries that appear in both maps; that is, the intersection of the two maps.

Annotations
@Override
entriesOnlyOnLeftback to summary
public SortedMap<K, V> entriesOnlyOnLeft()

Redeclares com.google.common.collect.MapDifference.entriesOnlyOnLeft.

Doc from com.google.common.collect.MapDifference.entriesOnlyOnLeft.

Returns an unmodifiable map containing the entries from the left map whose keys are not present in the right map.

Annotations
@Override
entriesOnlyOnRightback to summary
public SortedMap<K, V> entriesOnlyOnRight()

Redeclares com.google.common.collect.MapDifference.entriesOnlyOnRight.

Doc from com.google.common.collect.MapDifference.entriesOnlyOnRight.

Returns an unmodifiable map containing the entries from the right map whose keys are not present in the left map.

Annotations
@Override