Share via


INavigableMap.DescendingMap Method

Definition

Returns a reverse order view of the mappings contained in this map.

[Android.Runtime.Register("descendingMap", "()Ljava/util/NavigableMap;", "GetDescendingMapHandler:Java.Util.INavigableMapInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Java.Util.INavigableMap DescendingMap ();
[<Android.Runtime.Register("descendingMap", "()Ljava/util/NavigableMap;", "GetDescendingMapHandler:Java.Util.INavigableMapInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member DescendingMap : unit -> Java.Util.INavigableMap

Returns

a reverse order view of this map

Attributes

Remarks

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

The returned map has an ordering equivalent to Collections#reverseOrder(Comparator) Collections.reverseOrder(comparator()). The expression m.descendingMap().descendingMap() returns a view of m essentially equivalent to m.

Java documentation for java.util.NavigableMap.descendingMap().

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