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
ModifierConstructorDescriptionprotected
TransformSet
(Set<W> wrapped, Transformer<E, W> transformer) -
Method Summary
Modifier and TypeMethodDescriptionboolean
static <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
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
-
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:
getWrapped
in classTransformCollection<E,
W>
-
equals
- Specified by:
equals
in interfaceCollection<E>
- Specified by:
equals
in interfaceSet<E>
- Overrides:
equals
in classTransformCollection<E,
W>
-