Interface ReadOnlySequencedSet<E>

  • Type Parameters:
    E - the type of elements in this sequenced set
    All Superinterfaces:
    java.lang.Iterable<E>, ReadOnlyCollection<E>, ReadOnlySequencedCollection<E>, ReadOnlySet<E>
    All Known Subinterfaces:
    ReadOnlyNavigableSet<E>, ReadOnlySortedSet<E>
    All Known Implementing Classes:
    ReadOnlyTreeSet

    public interface ReadOnlySequencedSet<E>
    extends ReadOnlySequencedCollection<E>, ReadOnlySet<E>
    This interface was originally copied from GitHub's Open-JDK Account. Though the original file has been modified, few changes have been applied to the Javadoc Commenting. Due to fact that that is a Java interface file, there were few method bodies with Source-Code to begin with - meaning this is largely a copy of Method-Signatures and Java-Doc Comments.

    Method and parameter names & types have not been modified whatsoever; but several methods had to be eliminated for not being Read-Only. This Source-File was copied from the original Open JDK-21 file of the same (or, rather, highly similar) Interface-Name. The original file may be viewed on the JDK-21 GitHub public (and, coincidentally, Read-Only) Source-Release archive for Java Package java.util.*

    The Original '.java' Source-File's Header-Copyright Information is included here: File Copyright. Within that Copyright Notice, it is suggested that a copy of the GNU Public License V2 also be included alongside.
    Immutable variant of Java Collections Framework interface java.util.SequencedSet<E>. This interface contains all of the methods that the standard Java interface ReadOnlySequencedSet contains - except those which would directly or indirectly modify / mutate the internal data-structure.


    • Method Detail

      • reversed

          🗕  🗗  🗖
        ReadOnlySequencedSet<Ereversed()
        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.
        Specified by:
        reversed in interface ReadOnlySequencedCollection<E>
        Returns:
        a reverse-ordered view of this collection, as a SequencedSet