INavigableSet.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, Boolean, Object, Boolean) |
Returns a view of the portion of this set whose elements range from
|
| 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.
[Android.Runtime.Register("subSet", "(Ljava/lang/Object;ZLjava/lang/Object;Z)Ljava/util/NavigableSet;", "GetSubSet_Ljava_lang_Object_ZLjava_lang_Object_ZHandler:Java.Util.INavigableSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public 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:Java.Util.INavigableSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member 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 view of the portion of this set whose elements range from
fromElement, inclusive, to toElement, exclusive
- Attributes
Remarks
Returns a view of the portion of this set whose elements range from fromElement to toElement. If fromElement and toElement are equal, the returned set is empty unless fromInclusive and toInclusive are both true. The returned set is backed by this set, so changes in the returned set are reflected in this set, and vice-versa. The returned set supports all optional set operations that this set supports.
The returned set will throw an IllegalArgumentException on an attempt to insert an element outside its range.
Java documentation for java.util.NavigableSet.subSet(E, boolean, E, boolean).
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, 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:Java.Util.INavigableSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public 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:Java.Util.INavigableSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member 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
Returns a view of the portion of this set whose elements range from fromElement, inclusive, to toElement, exclusive.
(If fromElement and toElement are equal, the returned set is empty.)
The returned set is backed by this set, so changes in the returned set are reflected in this set, and vice-versa.
The returned set supports all optional set operations that this set supports.
The returned set will throw an IllegalArgumentException on an attempt to insert an element outside its range.
Equivalent to subSet(fromElement, true, toElement, false).
Java documentation for java.util.NavigableSet.subSet(E, E).
Java reference for java.util.NavigableSet.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.