Collections.NewSequencedSetFromMap(ISequencedMap) 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 a sequenced set backed by the specified map.
[Android.Runtime.Register("newSequencedSetFromMap", "(Ljava/util/SequencedMap;)Ljava/util/SequencedSet;", "", ApiSince=35)]
[Java.Interop.JavaTypeParameters(new System.String[] { "E" })]
public static Java.Util.ISequencedSet NewSequencedSetFromMap(Java.Util.ISequencedMap map);
[<Android.Runtime.Register("newSequencedSetFromMap", "(Ljava/util/SequencedMap;)Ljava/util/SequencedSet;", "", ApiSince=35)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "E" })>]
static member NewSequencedSetFromMap : Java.Util.ISequencedMap -> Java.Util.ISequencedSet
Parameters
- map
- ISequencedMap
the backing map
Returns
the set backed by the map
- Attributes
Remarks
The resulting set has the same ordering, concurrency, and performance characteristics as the backing map. Most operations delegate to the backing map or its key view. AddAll(ICollection) adds elements one at a time through the backing map. The specified map must be empty when this method is called and should not be accessed directly after this method returns. These conditions are ensured if the map is created empty, passed directly to this method, and no reference to the map is retained.
Java reference for java.util.Collections.newSequencedSetFromMap.