TreeSet.SubSet Method
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.
Overloads
| Name | Description |
|---|---|
| SubSet(Object, Object) |
Returns a view of the portion of this set whose elements range from fromElement, inclusive, to toElement, exclusive. |
| SubSet(Object, Boolean, Object, Boolean) |
Returns a view of the portion of this set whose elements range from fromElement to toElement. |
SubSet(Object, Object)
Returns a view of the portion of this set whose elements range from fromElement, inclusive, to toElement, exclusive.
[Android.Runtime.Register("subSet", "(Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/SortedSet;", "GetSubSet_Ljava_lang_Object_Ljava_lang_Object_Handler")]
public virtual Java.Util.ISortedSet? SubSet(Java.Lang.Object? fromElement, Java.Lang.Object? toElement);
[<Android.Runtime.Register("subSet", "(Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/SortedSet;", "GetSubSet_Ljava_lang_Object_Ljava_lang_Object_Handler")>]
abstract member SubSet : Java.Lang.Object * Java.Lang.Object -> Java.Util.ISortedSet
override this.SubSet : Java.Lang.Object * Java.Lang.Object -> Java.Util.ISortedSet
Parameters
- fromElement
- Object
low endpoint (inclusive) of the returned set
- toElement
- Object
high endpoint (exclusive) of the returned set
Returns
a view of the portion of this set whose elements range from fromElement, inclusive, to toElement, exclusive
Implements
- Attributes
Remarks
Java documentation for java.util.TreeSet.subSet(E, E).
Java reference for java.util.TreeSet.subSet.
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
SubSet(Object, Boolean, Object, Boolean)
Returns a view of the portion of this set whose elements range from fromElement to toElement.
[Android.Runtime.Register("subSet", "(Ljava/lang/Object;ZLjava/lang/Object;Z)Ljava/util/NavigableSet;", "GetSubSet_Ljava_lang_Object_ZLjava_lang_Object_ZHandler")]
public virtual Java.Util.INavigableSet? SubSet(Java.Lang.Object? fromElement, bool fromInclusive, Java.Lang.Object? toElement, bool toInclusive);
[<Android.Runtime.Register("subSet", "(Ljava/lang/Object;ZLjava/lang/Object;Z)Ljava/util/NavigableSet;", "GetSubSet_Ljava_lang_Object_ZLjava_lang_Object_ZHandler")>]
abstract member SubSet : Java.Lang.Object * bool * Java.Lang.Object * bool -> Java.Util.INavigableSet
override this.SubSet : Java.Lang.Object * bool * Java.Lang.Object * bool -> Java.Util.INavigableSet
Parameters
- fromElement
- Object
low endpoint of the returned set
- fromInclusive
- Boolean
true if the low endpoint is to be included in the returned view
- toElement
- Object
high endpoint of the returned set
- toInclusive
- Boolean
true if the high endpoint is to be included in the returned view
Returns
A backed view between the specified bounds, including each endpoint only when its corresponding inclusive argument is true.
Implements
- Attributes
Remarks
Java documentation for java.util.TreeSet.subSet(E, boolean, E, boolean).
Java reference for java.util.TreeSet.subSet.
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.