Module org.jhotdraw8.icollection
Interface ReadOnlySequencedSet<E>
- Type Parameters:
E- the element type
- All Superinterfaces:
Iterable<E>,ReadOnlyCollection<E>,ReadOnlySequencedCollection<E>,ReadOnlySet<E>
- All Known Subinterfaces:
ImmutableNavigableSet<E>,ImmutableSequencedSet<E>,ImmutableSortedSet<E>,ReadOnlyNavigableSet<E>,ReadOnlySortedSet<E>
- All Known Implementing Classes:
ChampVectorSet,MutableChampVectorSet,MutableRedBlackSet,ReadOnlyNavigableSetFacade,ReadOnlySequencedSetFacade,ReadOnlySortedSetFacade,RedBlackSet
A read-only interface to a sequenced set. A sequenced set is a collection that is both a
sequenced collection and a set.
References:
- JEP draft: Sequenced Collections
- java.ne
-
Method Summary
Modifier and TypeMethodDescriptiondefault SequencedSet<E> asSet()Wraps this set in the Set interface - without copying.Returns a reversed-order view of this set.Methods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface org.jhotdraw8.icollection.readonly.ReadOnlyCollection
contains, containsAll, isEmpty, iterator, size, stream, toArray, toArrayMethods inherited from interface org.jhotdraw8.icollection.readonly.ReadOnlySequencedCollection
asCollection, getFirst, getLastMethods inherited from interface org.jhotdraw8.icollection.readonly.ReadOnlySet
characteristics, equals, hashCode
-
Method Details
-
readOnlyReversed
ReadOnlySequencedSet<E> readOnlyReversed()Returns a reversed-order view of this set. Changes to the underlying set are visible in the reversed view.- Specified by:
readOnlyReversedin interfaceReadOnlySequencedCollection<E>- Returns:
- a reversed-order view of this set
-
asSet
Description copied from interface:ReadOnlySetWraps this set in the Set interface - without copying.- Specified by:
asSetin interfaceReadOnlySet<E>- Returns:
- the wrapped set
-