Package Torello.Java.ReadOnly
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 fromGitHub'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 Javainterface
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 theJDK-21 GitHub
public (and, coincidentally, Read-Only) Source-Release archive for Java Packagejava.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 theGNU Public License V2
also be included alongside.Immutable variant of Java Collections Framework interfacejava.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.
Hi-Lited Source-Code:- View Here: Torello/Java/ReadOnly/ReadOnlySequencedSet.java
- Open New Browser-Tab: Torello/Java/ReadOnly/ReadOnlySequencedSet.java
File Size: 1,923 Bytes Line Count: 46 '\n' Characters Found
-
-
Method Summary
Retrieve a Reverse-Ordered Set Modifier and Type Method ReadOnlySequencedSet<E>
reversed()
-
Methods inherited from interface Torello.Java.ReadOnly.ReadOnlyCollection
containsAND, containsAND, containsNAND, containsNAND, containsOR, containsOR, containsXOR, containsXOR, copyIntoCollection, parallelStream, stream, toArray
-
Methods inherited from interface Torello.Java.ReadOnly.ReadOnlySequencedCollection
getFirst, getLast
-
Methods inherited from interface Torello.Java.ReadOnly.ReadOnlySet
contains, containsAll, equals, hashCode, isEmpty, iterator, size, spliterator, toArray, toArray
-
-
-
-
Method Detail
-
reversed
ReadOnlySequencedSet<E> reversed()
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 interfaceReadOnlySequencedCollection<E>
- Returns:
- a reverse-ordered view of this collection, as a
SequencedSet
-
-