Taal

LinkedHashSet.Reversed Method

Definition

Returns a reverse-ordered view of this collection.

[Android.Runtime.Register("reversed", "()Ljava/util/SequencedSet;", "GetReversedHandler", ApiSince=35)]
public virtual Java.Util.ISequencedCollection? Reversed();
[<Android.Runtime.Register("reversed", "()Ljava/util/SequencedSet;", "GetReversedHandler", ApiSince=35)>]
abstract member Reversed : unit -> Java.Util.ISequencedCollection
override this.Reversed : unit -> Java.Util.ISequencedCollection

Returns

a reverse-ordered view of this collection, as a SequencedSet

Implements

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 set. In addition, modifications to this set will be visible in the reversed view.

Added in 21.

Java documentation for java.util.LinkedHashSet.reversed().

Java reference for java.util.LinkedHashSet.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.

Applies to