Class CollectionMapper<E,R>

java.lang.Object
java.util.AbstractCollection<R>
org.infinispan.commons.util.CollectionMapper<E,R>
All Implemented Interfaces:
Iterable<R>, Collection<R>
Direct Known Subclasses:
SetMapper, 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 except iterator removal and clear as they don't pertain to the values.

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:
16.0
Author:
wburns