Collections.UnmodifiableSequencedCollection(ISequencedCollection) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns an unmodifiable view of the specified sequenced collection.
[Android.Runtime.Register("unmodifiableSequencedCollection", "(Ljava/util/SequencedCollection;)Ljava/util/SequencedCollection;", "", ApiSince=35)]
[Java.Interop.JavaTypeParameters(new System.String[] { "T" })]
public static Java.Util.ISequencedCollection UnmodifiableSequencedCollection(Java.Util.ISequencedCollection c);
[<Android.Runtime.Register("unmodifiableSequencedCollection", "(Ljava/util/SequencedCollection;)Ljava/util/SequencedCollection;", "", ApiSince=35)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "T" })>]
static member UnmodifiableSequencedCollection : Java.Util.ISequencedCollection -> Java.Util.ISequencedCollection
Parameters
the collection for which an unmodifiable view is to be returned.
Returns
an unmodifiable view of the specified collection.
- Attributes
Remarks
Query operations on the view read through to the specified collection. The underlying Java view throws UnsupportedOperationException for direct modifications or modifications through its iterator. Its Java equals and hashCode operations use the implementations of Object rather than those of the backing collection. This preserves their contracts when the backing collection is a set or a list. The view is serializable if the specified collection is serializable.
Java reference for java.util.Collections.unmodifiableSequencedCollection.