public class SetMapper<E,R> extends CollectionMapper<E,R> implements Set<R>
This class currently only accepts a Function that also implements InjectiveFunction so that it can
guarantee the resulting mapped values are distinct from each other. This is important as many operations because
very costly if this is not true.
Some operations such as Collection.contains(Object) and Collection.containsAll(Collection) may be
more expensive then normal since they cannot utilize lookups into the original collection.
mapper, realCollection| Constructor and Description |
|---|
SetMapper(Set<E> realCollection,
Function<? super E,? extends R> mapper) |
add, addAll, clear, forEach, isEmpty, iterator, parallelStream, remove, removeAll, retainAll, size, spliterator, streamcontains, containsAll, toArray, toArray, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitadd, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, spliterator, toArray, toArrayparallelStream, removeIf, streamCopyright © 2021 JBoss by Red Hat. All rights reserved.