Class TransformSet<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>
- All Implemented Interfaces:
Iterable<E>,Collection<E>,Set<E>
- Direct Known Subclasses:
TransformSortedSet
Wraps a
Set, with optional type conversion.- Author:
- AO Industries, Inc.
-
Field Summary
Fields inherited from class com.aoapps.collections.transformers.TransformIterable
transformer -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTransformSet(Set<W> wrapped, Transformer<E, W> transformer) -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic <E> TransformSet<E, E> static <E,W> TransformSet <E, W> of(Set<W> set, Transformer<E, W> transformer) Wraps a set.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, 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, toArray
-
Constructor Details
-
TransformSet
-
-
Method Details
-
of
Wraps a set.- If the given set is a
SortedSet, then will return aTransformSortedSet.
- See Also:
- If the given set is a
-
of
- See Also:
-
getWrapped
- Overrides:
getWrappedin classTransformCollection<E,W>
-
equals
- Specified by:
equalsin interfaceCollection<E>- Specified by:
equalsin interfaceSet<E>- Overrides:
equalsin classTransformCollection<E,W>
-
