Package org.cactoos.set
Class Sorted<T>
- java.lang.Object
-
- org.cactoos.iterable.IterableEnvelope<X>
-
- org.cactoos.collection.CollectionEnvelope<T>
-
- org.cactoos.set.SetEnvelope<T>
-
- org.cactoos.set.SortedSetEnvelope<T>
-
- org.cactoos.set.Sorted<T>
-
- Type Parameters:
T
- Set type
- All Implemented Interfaces:
Iterable<T>
,Collection<T>
,Set<T>
,SortedSet<T>
public final class Sorted<T> extends SortedSetEnvelope<T>
- Since:
- 1.0.0
-
-
Constructor Summary
Constructors Constructor Description Sorted(Comparator<? super T> cmp, Iterable<? extends T> src)
Ctor.Sorted(Comparator<? super T> cmp, T... array)
Ctor.
-
Method Summary
-
Methods inherited from class org.cactoos.set.SortedSetEnvelope
comparator, first, headSet, last, subSet, tailSet
-
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
-
-
-
-
Constructor Detail
-
Sorted
@SafeVarargs public Sorted(Comparator<? super T> cmp, T... array)
Ctor.- Parameters:
cmp
- Comparatorarray
- An array of some elements
-
Sorted
public Sorted(Comparator<? super T> cmp, Iterable<? extends T> src)
Ctor.- Parameters:
cmp
- Comparatorsrc
- AnIterable
-
-