CopyOnWriteArrayList.Reversed Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a reverse-ordered view of this collection.
[Android.Runtime.Register("reversed", "()Ljava/util/List;", "GetReversedHandler", ApiSince=35)]
public virtual System.Collections.IList Reversed();
[<Android.Runtime.Register("reversed", "()Ljava/util/List;", "GetReversedHandler", ApiSince=35)>]
abstract member Reversed : unit -> System.Collections.IList
override this.Reversed : unit -> System.Collections.IList
Returns
a reverse-ordered view of this collection, as a List
- Attributes
Remarks
Returns a reverse-ordered view of this collection.
The encounter order of elements in the returned view is the inverse of the encounter order of elements in this collection.
The reverse ordering affects all order-sensitive operations, including those on the view collections of the returned view.
If the collection implementation permits modifications to this view, the modifications "write through" to the underlying collection.
Changes to the underlying collection might or might not be visible in this reversed view, depending upon the implementation.
Modifications to the reversed view are permitted and will be propagated to this list. In addition, modifications to this list will be visible in the reversed view. Sublists and iterators of the reversed view have the same restrictions as those of this list.
Added in 21.
Java reference for java.util.concurrent.CopyOnWriteArrayList.reversed.
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.