IMap IMap Interface

Definition

A Map is a data structure consisting of a set of keys and values in which each key is mapped to a single value.

[Android.Runtime.Register("java/util/Map", "", "Java.Util.IMapInvoker", ApiSince=1)]
[Java.Interop.JavaTypeParameters(new System.String[] { "K", "V" })]
public interface IMap : Android.Runtime.IJavaObject, IDisposable
type IMap = interface
    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.

Properties

Handle Handle

Gets the JNI value of the underlying Android object.

(Inherited from IJavaObject)
IsEmpty IsEmpty

Returns whether this map is empty.

Methods

Clear() Clear()

Removes all elements from this Map, leaving it empty.

ContainsKey(Object) ContainsKey(Object)

Returns whether this Map contains the specified key.

ContainsValue(Object) ContainsValue(Object)

Returns whether this Map contains the specified value.

EntrySet() EntrySet()

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

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.

Get(Object) Get(Object)

Returns the value of the mapping with the specified key.

GetHashCode() GetHashCode()

Returns an integer hash code for the receiver.

KeySet() KeySet()

Returns a set of the keys contained in this Map.

Put(Object, Object) Put(Object, Object)
PutAll(IDictionary) PutAll(IDictionary)
Remove(Object) Remove(Object)

Removes a mapping with the specified key from this Map.

Size() Size()

Returns the number of mappings in this Map.

Values() Values()

Returns a Collection of the values contained in this Map.

Extension Methods

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

Performs an Android runtime-checked type conversion.

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

Applies to