Returns a read-only view of a sequenced map: as unmodifiableMap, with the first and last
entries, a reversed view, and sequenced key, entry and value views.
When map is already a view this function returns (printed as UnmodifiableSequencedMap), it is
returned unchanged. When it is any other unmodifiable view or immutable collection from this copy
of the library, the new view reads that collection's source instead, and entries it hands out
stay read-only, so read-only wrappers never nest.
Time: O(1); each operation costs what the map's costs.
Returns a read-only view of a sequenced map: as unmodifiableMap, with the first and last entries, a reversed view, and sequenced key, entry and value views.
When
mapis already a view this function returns (printed asUnmodifiableSequencedMap), it is returned unchanged. When it is any other unmodifiable view or immutable collection from this copy of the library, the new view reads that collection's source instead, and entries it hands out stay read-only, so read-only wrappers never nest.Time: O(1); each operation costs what the map's costs.