Language

TreeSet.HeadSet Method

Definition

Overloads

Name Description
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.

HeadSet(Object)

Returns a view of the portion of this set whose elements are strictly less than toElement.

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")]
public virtual 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")>]
abstract member HeadSet : Java.Lang.Object * bool -> Java.Util.INavigableSet
override this.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

Implements

Attributes

Remarks

Java documentation for java.util.TreeSet.headSet(E, boolean).

Java reference for java.util.TreeSet.headSet.

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)

Returns a view of the portion of this set whose elements are strictly less than toElement.

[Android.Runtime.Register("headSet", "(Ljava/lang/Object;)Ljava/util/SortedSet;", "GetHeadSet_Ljava_lang_Object_Handler")]
public virtual Java.Util.ISortedSet? HeadSet(Java.Lang.Object? toElement);
[<Android.Runtime.Register("headSet", "(Ljava/lang/Object;)Ljava/util/SortedSet;", "GetHeadSet_Ljava_lang_Object_Handler")>]
abstract member HeadSet : Java.Lang.Object -> Java.Util.ISortedSet
override this.HeadSet : Java.Lang.Object -> Java.Util.ISortedSet

Parameters

toElement
Object

high endpoint (exclusive) of the returned set

Returns

a view of the portion of this set whose elements are strictly less than toElement

Implements

Attributes

Remarks

Java documentation for java.util.TreeSet.headSet(E).

Java reference for java.util.TreeSet.headSet.

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