Package org.infinispan.util
Class WriteableCacheSetMapper<E,R> 
java.lang.Object
java.util.AbstractCollection<R>
org.infinispan.util.CollectionMapper<E,R>
 
org.infinispan.util.WriteableCacheCollectionMapper<E,R>
 
org.infinispan.util.WriteableCacheSetMapper<E,R> 
- Type Parameters:
- E- the original collection type - referred to as old in some methods
- R- the resulting collection type - referred to as new in some methods
- All Implemented Interfaces:
- Iterable<R>,- Collection<R>,- Set<R>,- CacheCollection<R>,- CacheSet<R>,- CloseableIteratorCollection<R>,- CloseableIteratorSet<R>
public class WriteableCacheSetMapper<E,R> 
extends WriteableCacheCollectionMapper<E,R>
implements CacheSet<R> 
A writeable cache set mapper that also has constant time operations for things such as
 
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.
- Since:
- 9.2
- Author:
- wburns
- 
Field SummaryFields inherited from class org.infinispan.util.WriteableCacheCollectionMapperfromNewTypeFunction, keyFilterMapper, realCacheCollection, toNewTypeIteratorFunctionFields inherited from class org.infinispan.util.CollectionMappermapper, realCollection
- 
Constructor SummaryConstructorsConstructorDescriptionWriteableCacheSetMapper(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) 
- 
Method SummaryMethods inherited from class org.infinispan.util.WriteableCacheCollectionMapperadd, addAll, clear, contains, containsAll, iterator, parallelStream, remove, removeAll, removeIf, retainAll, spliterator, streamMethods inherited from class org.infinispan.util.CollectionMapperforEach, isEmpty, sizeMethods inherited from class java.util.AbstractCollectiontoArray, toArray, toStringMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.infinispan.CacheCollectionlocalPublisher, localPublisher, parallelStream, streamMethods inherited from interface org.infinispan.commons.util.CloseableIteratorCollectioniterator, spliteratorMethods inherited from interface org.infinispan.commons.util.CloseableIteratorSetspliteratorMethods inherited from interface java.util.CollectionremoveIf, toArray
- 
Constructor Details- 
WriteableCacheSetMapperpublic WriteableCacheSetMapper(CacheSet<E> realSet, InjectiveFunction<? super E, ? extends R> toNewTypeFunction, InjectiveFunction<? super R, ? extends E> fromNewTypeFunction, InjectiveFunction<Object, ?> keyFilterFunction) 
- 
WriteableCacheSetMapperpublic 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) 
 
-