IMap Interface
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.
An object that maps keys to values.
[Android.Runtime.Register("java/util/Map", "", "Java.Util.IMapInvoker")]
[Java.Interop.JavaTypeParameters(new System.String[] { "K", "V" })]
public interface IMap : Android.Runtime.IJavaObject, IDisposable, Java.Interop.IJavaPeerable
[<Android.Runtime.Register("java/util/Map", "", "Java.Util.IMapInvoker")>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "K", "V" })>]
type IMap = interface
interface IJavaObject
interface IDisposable
interface IJavaPeerable
- Derived
- Attributes
- Implements
Remarks
Java documentation for java.util.Map.
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 |
Gets the JNI value of the underlying Android object. (Inherited from IJavaObject) |
| IsEmpty |
Returns whether this map is empty. |
| JniIdentityHashCode | (Inherited from IJavaPeerable) |
| JniManagedPeerState | (Inherited from IJavaPeerable) |
| JniPeerMembers | (Inherited from IJavaPeerable) |
| PeerReference | (Inherited from IJavaPeerable) |
Methods
| Clear() |
Removes all of the mappings from this map (optional operation). |
| Compute(Object, IBiFunction) | |
| ComputeIfAbsent(Object, IFunction) | |
| ComputeIfPresent(Object, IBiFunction) | |
| ContainsKey(Object) |
Returns |
| ContainsValue(Object) |
Returns |
| CopyOf(IDictionary) |
Returns an "#unmodifiable">unmodifiable Map containing the entries of the given Map. |
| Disposed() | (Inherited from IJavaPeerable) |
| DisposeUnlessReferenced() | (Inherited from IJavaPeerable) |
| Entry(Object, Object) |
Returns an immutable |
| EntrySet() |
Returns a |
| Equals(Object) |
Compares the specified object with this map for equality. |
| Finalized() | (Inherited from IJavaPeerable) |
| ForEach(IBiConsumer) |
Performs the given action for each entry in this map until all entries have been processed or the action throws an exception. |
| Get(Object) |
Returns the value to which the specified key is mapped,
or |
| GetHashCode() |
Returns the hash code value for this map. |
| GetOrDefault(Object, Object) |
Returns the value to which the specified key is mapped, or
|
| KeySet() |
Returns a |
| Merge(Object, Object, IBiFunction) |
If the specified key is not already associated with a value or is associated with null, associates it with the given non-null value. |
| Of() |
Returns an immutable map containing zero mappings. |
| Of(Object, Object) |
Returns an immutable map containing a single mapping. |
| Of(Object, Object, Object, Object) |
Returns an immutable map containing two mappings. |
| Of(Object, Object, Object, Object, Object, Object) |
Returns an immutable map containing three mappings. |
| Of(Object, Object, Object, Object, Object, Object, Object, Object) |
Returns an immutable map containing four mappings. |
| Of(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object) |
Returns an immutable map containing five mappings. |
| Of(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object) |
Returns an immutable map containing six mappings. |
| Of(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object) |
Returns an immutable map containing seven mappings. |
| Of(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object) |
Returns an immutable map containing eight mappings. |
| Of(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object) |
Returns an immutable map containing nine mappings. |
| Of(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object) |
Returns an immutable map containing ten mappings. |
| OfEntries(IMapEntry[]) |
Returns an immutable map containing keys and values extracted from the given entries. |
| Put(Object, Object) |
Associates the specified value with the specified key in this map (optional operation). |
| PutAll(IDictionary) |
Copies all of the mappings from the specified map to this map (optional operation). |
| PutIfAbsent(Object, Object) |
If the specified key is not already associated with a value (or is mapped
to |
| Remove(Object) |
Removes the mapping for a key from this map if it is present (optional operation). |
| Remove(Object, Object) |
Removes the mapping for a key from this map if it is present (optional operation). |
| Replace(Object, Object) | |
| Replace(Object, Object, Object) | |
| ReplaceAll(IBiFunction) |
Replaces each entry's value with the result of invoking the given function on that entry until all entries have been processed or the function throws an exception. |
| SetJniIdentityHashCode(Int32) | (Inherited from IJavaPeerable) |
| SetJniManagedPeerState(JniManagedPeerStates) | (Inherited from IJavaPeerable) |
| SetPeerReference(JniObjectReference) | (Inherited from IJavaPeerable) |
| Size() |
Returns the number of key-value mappings in this map. |
| UnregisterFromRuntime() | (Inherited from IJavaPeerable) |
| Values() |
Returns a |
Extension Methods
| JavaCast<TResult>(IJavaObject) |
Performs an Android runtime-checked type conversion. |
| JavaCast<TResult>(IJavaObject) | |
| GetJniTypeName(IJavaPeerable) | |