Share via


ArrayMap.EntrySet Method

Definition

Return a java.util.Set for iterating over and interacting with all mappings in the array map.

[Android.Runtime.Register("entrySet", "()Ljava/util/Set;", "")]
public System.Collections.ICollection? EntrySet ();
[<Android.Runtime.Register("entrySet", "()Ljava/util/Set;", "")>]
abstract member EntrySet : unit -> System.Collections.ICollection
override this.EntrySet : unit -> System.Collections.ICollection

Returns

Implements

Attributes

Remarks

Return a java.util.Set for iterating over and interacting with all mappings in the array map.

<b>Note:</b> this is a very inefficient way to access the array contents, it requires generating a number of temporary objects and allocates additional state information associated with the container that will remain for the life of the container.

<b>Note:</b>

the semantics of this Set are subtly different than that of a java.util.HashMap: most important, the java.util.Map.Entry Map.Entry object returned by its iterator is a single object that exists for the entire iterator, so you can <b>not</b> hold on to it after calling java.util.Iterator#next() Iterator.next.</p>

Java documentation for android.util.ArrayMap.entrySet().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to