Class CollectionMapper<E,R>

java.lang.Object
java.util.AbstractCollection<R>
org.infinispan.util.CollectionMapper<E,R>
All Implemented Interfaces:
Iterable<R>, Collection<R>
Direct Known Subclasses:
SetMapper, WriteableCacheCollectionMapper

public class CollectionMapper<E,R> extends AbstractCollection<R>
A collection that maps another one to a new one of a possibly different type. Note this collection is read only and doesn't accept write operations.

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.

Since:
9.0
Author:
wburns