ISortedMap ISortedMap Interface


A map that has its keys ordered.

[Android.Runtime.Register("java/util/SortedMap", "", "Java.Util.ISortedMapInvoker", ApiSince=1)]
[Java.Interop.JavaTypeParameters(new System.String[] { "K", "V" })]
public interface ISortedMap : IDisposable, Java.Util.IMap
type ISortedMap = interface
    interface IMap
    interface IJavaObject
    interface IDisposable


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.


Clear() Clear()

Removes all elements from this Map, leaving it empty.

(Inherited from IMap)
Comparator() Comparator()

Returns the comparator used to compare keys in this sorted map, or null if the natural ordering is in use.

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()
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)
FirstKey() FirstKey()

Returns the least key in this sorted map.

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)
HeadMap(Object) HeadMap(Object)
KeySet() KeySet()
LastKey() LastKey()

Returns the greatest key in this sorted map.

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

Removes a mapping with the specified key from this Map.

(Inherited from IMap)
Size() Size()

Returns the number of mappings in this Map.

(Inherited from IMap)
SubMap(Object, Object) SubMap(Object, Object)
TailMap(Object) TailMap(Object)
Values() Values()


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