次の方法で共有


INavigableSet.DescendingSet Method

Definition

Returns a reverse order view of the elements contained in this set.

[Android.Runtime.Register("descendingSet", "()Ljava/util/NavigableSet;", "GetDescendingSetHandler:Java.Util.INavigableSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Java.Util.INavigableSet? DescendingSet ();
[<Android.Runtime.Register("descendingSet", "()Ljava/util/NavigableSet;", "GetDescendingSetHandler:Java.Util.INavigableSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member DescendingSet : unit -> Java.Util.INavigableSet

Returns

a reverse order view of this set

Attributes

Remarks

Returns a reverse order view of the elements contained in this set. The descending set is backed by this set, so changes to the set are reflected in the descending set, and vice-versa. If either set is modified while an iteration over either set is in progress (except through the iterator's own remove operation), the results of the iteration are undefined.

The returned set has an ordering equivalent to Collections#reverseOrder(Comparator) Collections.reverseOrder(comparator()). The expression s.descendingSet().descendingSet() returns a view of s essentially equivalent to s.

Java documentation for java.util.NavigableSet.descendingSet().

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