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
ConstructorsModifierConstructorDescriptionprotectedTransformSortedSet(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, ofMethods inherited from class com.aoapps.collections.transformers.TransformCollection
add, addAll, clear, contains, containsAll, hashCode, isEmpty, of, of, remove, removeAll, removeIf, retainAll, size, toArray, toArray, toArrayMethods inherited from class com.aoapps.collections.transformers.TransformIterable
forEach, iterator, of, ofMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.Set
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArrayMethods 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:
getWrappedin classTransformSet<E,W>
-
comparator
- Specified by:
comparatorin interfaceSortedSet<E>
-
subSet
-
headSet
-
tailSet
-
first
-
last
-
