Share via


ConcurrentHashMap.EntrySet Method

Definition

Returns a Set view of the mappings contained in this map.

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

Returns

the set view

Implements

Attributes

Remarks

Returns a Set view of the mappings contained in this map. The set is backed by the map, so changes to the map are reflected in the set, and vice-versa. The set supports element removal, which removes the corresponding mapping from the map, via the Iterator.remove, Set.remove, removeAll, retainAll, and clear operations.

The view's iterators and spliterators are <i>weakly consistent</i>.

The view's spliterator reports Spliterator#CONCURRENT, Spliterator#DISTINCT, and Spliterator#NONNULL.

Java documentation for java.util.concurrent.ConcurrentHashMap.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