Taal

TreeMap.SubMap Method

Definition

Overloads

Name Description
SubMap(Object, Object)

Returns a view of the portion of this map whose keys range from fromKey, inclusive, to toKey, exclusive.

SubMap(Object, Boolean, Object, Boolean)

Added in 1.

SubMap(Object, Object)

Returns a view of the portion of this map whose keys range from fromKey, inclusive, to toKey, exclusive.

[Android.Runtime.Register("subMap", "(Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/SortedMap;", "GetSubMap_Ljava_lang_Object_Ljava_lang_Object_Handler")]
public virtual System.Collections.IDictionary SubMap(Java.Lang.Object? fromKey, Java.Lang.Object? toKey);
[<Android.Runtime.Register("subMap", "(Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/SortedMap;", "GetSubMap_Ljava_lang_Object_Ljava_lang_Object_Handler")>]
abstract member SubMap : Java.Lang.Object * Java.Lang.Object -> System.Collections.IDictionary
override this.SubMap : Java.Lang.Object * Java.Lang.Object -> System.Collections.IDictionary

Parameters

fromKey
Object

low endpoint (inclusive) of the keys in the returned map

toKey
Object

high endpoint (exclusive) of the keys in the returned map

Returns

a view of the portion of this map whose keys range from fromKey, inclusive, to toKey, exclusive

Implements

Attributes

Remarks

Java documentation for java.util.TreeMap.subMap(K, K).

Java reference for java.util.TreeMap.subMap.

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

SubMap(Object, Boolean, Object, Boolean)

Added in 1.

[Android.Runtime.Register("subMap", "(Ljava/lang/Object;ZLjava/lang/Object;Z)Ljava/util/NavigableMap;", "GetSubMap_Ljava_lang_Object_ZLjava_lang_Object_ZHandler")]
public virtual Java.Util.INavigableMap SubMap(Java.Lang.Object? fromKey, bool fromInclusive, Java.Lang.Object? toKey, bool toInclusive);
[<Android.Runtime.Register("subMap", "(Ljava/lang/Object;ZLjava/lang/Object;Z)Ljava/util/NavigableMap;", "GetSubMap_Ljava_lang_Object_ZLjava_lang_Object_ZHandler")>]
abstract member SubMap : Java.Lang.Object * bool * Java.Lang.Object * bool -> Java.Util.INavigableMap
override this.SubMap : Java.Lang.Object * bool * Java.Lang.Object * bool -> Java.Util.INavigableMap

Parameters

fromKey
Object

low endpoint of the keys in the returned map

fromInclusive
Boolean

true if the low endpoint is to be included in the returned view

toKey
Object

high endpoint of the keys in the returned map

toInclusive
Boolean

true if the high endpoint is to be included in the returned view

Returns

a view of the portion of this map whose keys range from fromKey to toKey

Implements

Attributes

Remarks

Added in 1.6.

Java documentation for java.util.TreeMap.subMap(K, boolean, K, boolean).

Java reference for java.util.TreeMap.subMap.

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