E
- the original collection type - referred to as old in some methodsR
- the resulting collection type - referred to as new in some methodspublic class WriteableCacheSetMapper<E,R> extends WriteableCacheCollectionMapper<E,R> implements CacheSet<R>
Collection.contains(Object)
if the underlying Set does. Also implements the Set interface.
This set should be used for cases when a simple transformation of an element to another is all that is needed by the underlying set.
This implementation is basically identical to WriteableCacheCollectionMapper
except that this class
also implements Set
and all of its optional operations.
fromNewTypeFunction, keyFilterMapper, realCacheCollection, toNewTypeIteratorFunction
mapper, realCollection
Constructor and Description |
---|
WriteableCacheSetMapper(CacheSet<E> realSet,
InjectiveFunction<? super E,? extends R> toNewTypeFunction,
InjectiveFunction<? super E,? extends R> toNewTypeIteratorFunction,
InjectiveFunction<? super R,? extends E> fromNewTypeFunction,
InjectiveFunction<Object,?> keyFilterFunction) |
WriteableCacheSetMapper(CacheSet<E> realSet,
InjectiveFunction<? super E,? extends R> toNewTypeFunction,
InjectiveFunction<? super R,? extends E> fromNewTypeFunction,
InjectiveFunction<Object,?> keyFilterFunction) |
add, addAll, clear, contains, containsAll, iterator, parallelStream, remove, removeAll, removeIf, retainAll, spliterator, stream
forEach, isEmpty, size
toArray, toArray, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
localPublisher, localPublisher, parallelStream, stream
spliterator
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
iterator
removeIf
public WriteableCacheSetMapper(CacheSet<E> realSet, InjectiveFunction<? super E,? extends R> toNewTypeFunction, InjectiveFunction<? super R,? extends E> fromNewTypeFunction, InjectiveFunction<Object,?> keyFilterFunction)
public WriteableCacheSetMapper(CacheSet<E> realSet, InjectiveFunction<? super E,? extends R> toNewTypeFunction, InjectiveFunction<? super E,? extends R> toNewTypeIteratorFunction, InjectiveFunction<? super R,? extends E> fromNewTypeFunction, InjectiveFunction<Object,?> keyFilterFunction)
Copyright © 2021 JBoss by Red Hat. All rights reserved.