Class WriteableCacheCollectionMapper<E,R>

java.lang.Object
java.util.AbstractCollection<R>
org.infinispan.util.CollectionMapper<E,R>
org.infinispan.util.WriteableCacheCollectionMapper<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>, CacheCollection<R>, org.infinispan.commons.util.CloseableIteratorCollection<R>
Direct Known Subclasses:
WriteableCacheSetMapper

public class WriteableCacheCollectionMapper<E,R> extends CollectionMapper<E,R> implements CacheCollection<R>
A writeable cache collection mapper that also has constant time operations for things such as Collection.contains(Object) if the underlying Collection does.

This collection should be used for cases when a simple transformation of a element to another is all that is needed by the underlying collection.

Note this class allows for a different function specifically for values returned from an iterator. This can be useful to intercept calls such as Map.Entry.setValue(Object) and update appropriately.

Since:
9.2
Author:
wburns