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
Returns a sequenced set backed by the specified map. The resulting set displays the same ordering, concurrency, and performance characteristics as the backing map. In essence, this factory method provides a SequencedSet implementation corresponding to any SequencedMap implementation. Each method invocation on the set returned by this method results in exactly one method invocation on the backing map or its keySet view, with one exception. The addAll method is implemented as a sequence of put invocations on the backing map. The specified map must be empty at the time this method is invoked, 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.