Package org.cactoos.set
Class SortedSetEnvelope<T>
- java.lang.Object
-
- org.cactoos.iterable.IterableEnvelope<X>
-
- org.cactoos.collection.CollectionEnvelope<T>
-
- org.cactoos.set.SetEnvelope<T>
-
- org.cactoos.set.SortedSetEnvelope<T>
-
- Type Parameters:
T
- Element type
- All Implemented Interfaces:
Iterable<T>
,Collection<T>
,Set<T>
,SortedSet<T>
- Direct Known Subclasses:
Sorted
public abstract class SortedSetEnvelope<T> extends SetEnvelope<T> implements SortedSet<T>
SortedSet envelope.There is no thread-safety guarantee.
- Since:
- 0.45
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
SortedSetEnvelope(SortedSet<T> origin)
Primary ctor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Comparator<? super T>
comparator()
T
first()
SortedSet<T>
headSet(T end)
T
last()
SortedSet<T>
subSet(T begin, T end)
SortedSet<T>
tailSet(T from)
-
Methods inherited from class org.cactoos.collection.CollectionEnvelope
add, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, size, toArray, toArray
-
Methods inherited from class org.cactoos.iterable.IterableEnvelope
equals, hashCode, iterator, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.Set
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
-
Methods inherited from interface java.util.SortedSet
spliterator
-
-
-
-
Method Detail
-
comparator
public final Comparator<? super T> comparator()
- Specified by:
comparator
in interfaceSortedSet<T>
-
-