IConcurrentMap IConcurrentMap Interface

Definition

A IMap providing additional atomic putIfAbsent, remove, and replace methods.

[Android.Runtime.Register("java/util/concurrent/ConcurrentMap", "", "Java.Util.Concurrent.IConcurrentMapInvoker", ApiSince=1)]
[Java.Interop.JavaTypeParameters(new System.String[] { "K", "V" })]
public interface IConcurrentMap : IDisposable, Java.Util.IMap
type IConcurrentMap = interface
    interface IMap
    interface IJavaObject
    interface IDisposable
Derived
Attributes
Implements

Remarks

Android platform documentation

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.

Methods

Clear() Clear()

Removes all elements from this Map, leaving it empty.

(Inherited from IMap)
ContainsKey(Object) ContainsKey(Object)

Returns whether this Map contains the specified key.

(Inherited from IMap)
ContainsValue(Object) ContainsValue(Object)

Returns whether this Map contains the specified value.

(Inherited from IMap)
EntrySet() EntrySet()

Returns a Set containing all of the mappings in this Map.

(Inherited from IMap)
Equals(Object) Equals(Object)

Compares the argument to the receiver, and returns true if the specified object is a Map and both Maps contain the same mappings.

(Inherited from IMap)
Get(Object) Get(Object)

Returns the value of the mapping with the specified key.

(Inherited from IMap)
GetHashCode() GetHashCode()

Returns an integer hash code for the receiver.

(Inherited from IMap)
KeySet() KeySet()

Returns a set of the keys contained in this Map.

(Inherited from IMap)
Put(Object, Object) Put(Object, Object) Inherited from IMap
PutAll(IDictionary) PutAll(IDictionary) Inherited from IMap
PutIfAbsent(Object, Object) PutIfAbsent(Object, Object)
Remove(Object) Remove(Object)

Removes a mapping with the specified key from this Map.

(Inherited from IMap)
Remove(Object, Object) Remove(Object, Object)

Removes the entry for a key only if currently mapped to a given value.

Replace(Object, Object) Replace(Object, Object)
Replace(Object, Object, Object) Replace(Object, Object, Object)
Size() Size()

Returns the number of mappings in this Map.

(Inherited from IMap)
Values() Values()

Returns a Collection of the values contained in this Map.

(Inherited from IMap)

Properties

Handle Handle

Gets the JNI value of the underlying Android object.

(Inherited from IJavaObject)
IsEmpty IsEmpty

Returns whether this map is empty.

(Inherited from IMap)

Extension Methods

JavaCast<TResult>(IJavaObject) JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject) JavaCast<TResult>(IJavaObject)

Applies to