INavigableSet.HeadSet 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
HeadSet(Object) |
To be added |
HeadSet(Object, Boolean) |
Returns a view of the portion of this set whose elements are less than
(or equal to, if |
HeadSet(Object)
To be added
[Android.Runtime.Register("headSet", "(Ljava/lang/Object;)Ljava/util/SortedSet;", "GetHeadSet_Ljava_lang_Object_Handler:Java.Util.INavigableSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Java.Util.ISortedSet? HeadSet (Java.Lang.Object? toElement);
[<Android.Runtime.Register("headSet", "(Ljava/lang/Object;)Ljava/util/SortedSet;", "GetHeadSet_Ljava_lang_Object_Handler:Java.Util.INavigableSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member HeadSet : Java.Lang.Object -> Java.Util.ISortedSet
Parameters
- toElement
- Object
Returns
Implements
- Attributes
Remarks
To be added
Equivalent to headSet(toElement, false)
.
Java documentation for java.util.NavigableSet.headSet(E)
.
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
HeadSet(Object, Boolean)
Returns a view of the portion of this set whose elements are less than
(or equal to, if inclusive
is true) toElement
.
[Android.Runtime.Register("headSet", "(Ljava/lang/Object;Z)Ljava/util/NavigableSet;", "GetHeadSet_Ljava_lang_Object_ZHandler:Java.Util.INavigableSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Java.Util.INavigableSet? HeadSet (Java.Lang.Object? toElement, bool inclusive);
[<Android.Runtime.Register("headSet", "(Ljava/lang/Object;Z)Ljava/util/NavigableSet;", "GetHeadSet_Ljava_lang_Object_ZHandler:Java.Util.INavigableSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member HeadSet : Java.Lang.Object * bool -> Java.Util.INavigableSet
Parameters
- toElement
- Object
high endpoint of the returned set
- inclusive
- 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 are less than
(or equal to, if inclusive
is true) toElement
- Attributes
Remarks
Returns a view of the portion of this set whose elements are less than (or equal to, if inclusive
is true) toElement
. 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.headSet(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.