Udostępnij za pośrednictwem


INavigableSet.SubSet Method

Definition

Overloads

SubSet(Object, Object)

To be added

SubSet(Object, Boolean, Object, Boolean)

Returns a view of the portion of this set whose elements range from fromElement to toElement.

SubSet(Object, Object)

To be added

[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
toElement
Object

Returns

Implements

Attributes

Remarks

To be added

Equivalent to subSet(fromElement, true, toElement, false).

Java documentation for java.util.NavigableSet.subSet(E, 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

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