Class TransformSortedSet<E,W>
java.lang.Object
com.aoapps.collections.transformers.TransformIterable<E,W>
com.aoapps.collections.transformers.TransformCollection<E,W>
com.aoapps.collections.transformers.TransformSet<E,W>
com.aoapps.collections.transformers.TransformSortedSet<E,W>
- All Implemented Interfaces:
Iterable<E>
,Collection<E>
,Set<E>
,SortedSet<E>
- Direct Known Subclasses:
TransformNavigableSet
Wraps a
SortedSet
, with optional type conversion.- Author:
- AO Industries, Inc.
-
Field Summary
Fields inherited from class com.aoapps.collections.transformers.TransformIterable
transformer
-
Constructor Summary
ModifierConstructorDescriptionprotected
TransformSortedSet
(SortedSet<W> wrapped, Transformer<E, W> transformer) -
Method Summary
Modifier and TypeMethodDescriptionfirst()
last()
static <E> TransformSortedSet
<E, E> static <E,
W> TransformSortedSet <E, W> of
(SortedSet<W> set, Transformer<E, W> transformer) Wraps a sorted set.Methods inherited from class com.aoapps.collections.transformers.TransformSet
equals, of, of
Methods inherited from class com.aoapps.collections.transformers.TransformCollection
add, addAll, clear, contains, containsAll, hashCode, isEmpty, of, of, remove, removeAll, removeIf, retainAll, size, toArray, toArray
Methods inherited from class com.aoapps.collections.transformers.TransformIterable
forEach, iterator, of, of
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, 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 Details
-
TransformSortedSet
-
-
Method Details
-
of
Wraps a sorted set.- If the given set is a
NavigableSet
, then will return aTransformNavigableSet
.
- See Also:
- If the given set is a
-
of
- See Also:
-
getWrapped
- Overrides:
getWrapped
in classTransformSet<E,
W>
-
comparator
- Specified by:
comparator
in interfaceSortedSet<E>
-
subSet
-
headSet
-
tailSet
-
first
-
last
-