| Modifier and Type | Class and Description |
|---|---|
| public static interface | MapDifference.ValueDifference<V extends @Nullable Object>
A difference between the mappings from two maps with the same key. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | areEqual()
Returns |
| public Map | entriesDiffering()
Returns an unmodifiable map describing keys that appear in both maps, but with different values. |
| public Map | entriesInCommon()
Returns an unmodifiable map containing the entries that appear in both maps; that is, the intersection of the two maps. |
| public Map | entriesOnlyOnLeft()
Returns an unmodifiable map containing the entries from the left map whose keys are not present in the right map. |
| public Map | entriesOnlyOnRight()
Returns an unmodifiable map containing the entries from the right map whose keys are not present in the left map. |
| public boolean | |
| public int |
| areEqual | back to summary |
|---|---|
| public boolean areEqual() Returns | |
| entriesDiffering | back to summary |
|---|---|
| public Map Returns an unmodifiable map describing keys that appear in both maps, but with different values. | |
| entriesInCommon | back to summary |
|---|---|
| public Map Returns an unmodifiable map containing the entries that appear in both maps; that is, the intersection of the two maps. | |
| entriesOnlyOnLeft | back to summary |
|---|---|
| public Map Returns an unmodifiable map containing the entries from the left map whose keys are not present in the right map. | |
| entriesOnlyOnRight | back to summary |
|---|---|
| public Map Returns an unmodifiable map containing the entries from the right map whose keys are not present in the left map. | |
| equals | back to summary |
|---|---|
| public boolean equals(Object object) Compares the specified object with this instance for equality. Returns
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Returns the hash code for this instance. This is defined as the hash code of
| |
leftValue and
rightValue are not equal, and one but not both of them may be null.
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object other)
Two instances are considered equal if their |
| public int | |
| public V | |
| public V |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Two instances are considered equal if their
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() The hash code equals the value
| |
| leftValue | back to summary |
|---|---|
| public V leftValue() Returns the value from the left map (possibly null).
| |
| rightValue | back to summary |
|---|---|
| public V rightValue() Returns the value from the right map (possibly null).
| |