(
Map<K, ? extends V> map)
| 583 | } |
| 584 | |
| 585 | private static <K extends @Nullable Object, V extends @Nullable Object> Map<K, V> unmodifiableMap( |
| 586 | Map<K, ? extends V> map) { |
| 587 | if (map instanceof SortedMap) { |
| 588 | return Collections.unmodifiableSortedMap((SortedMap<K, ? extends V>) map); |
| 589 | } else { |
| 590 | return Collections.unmodifiableMap(map); |
| 591 | } |
| 592 | } |
| 593 | |
| 594 | private static class MapDifferenceImpl<K extends @Nullable Object, V extends @Nullable Object> |
| 595 | implements MapDifference<K, V> { |
no outgoing calls