다음을 통해 공유


ISortedSet.HeadSet(Object) Method

Definition

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:Java.Util.ISortedSetInvoker, 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.ISortedSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member 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

Attributes

Remarks

Returns a view of the portion of this set whose elements are strictly less than 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.SortedSet.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