Class CollectionMapper<E,R>
java.lang.Object
java.util.AbstractCollection<R>
org.infinispan.util.CollectionMapper<E,R>
- All Implemented Interfaces:
Iterable<R>, Collection<R>
Deprecated.
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 than normal since they cannot utilize lookups into the original collection.
- Since:
- 9.0
- Author:
- wburns
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCollectionMapper(Collection<E> realCollection, Function<? super E, ? extends R> mapper) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionbooleanDeprecated.booleanaddAll(Collection<? extends R> c) Deprecated.voidclear()Deprecated.voidDeprecated.booleanisEmpty()Deprecated.iterator()Deprecated.Deprecated.booleanDeprecated.booleanremoveAll(Collection<?> c) Deprecated.booleanretainAll(Collection<?> c) Deprecated.intsize()Deprecated.Deprecated.stream()Deprecated.Methods inherited from class AbstractCollection
contains, containsAll, toArray, toArray, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Collection
equals, hashCode, removeIf, toArray
-
Field Details
-
realCollection
Deprecated. -
mapper
-
-
Constructor Details
-
CollectionMapper
Deprecated.
-
-
Method Details
-
size
public int size()Deprecated.- Specified by:
sizein interfaceCollection<E>- Specified by:
sizein classAbstractCollection<R>
-
isEmpty
public boolean isEmpty()Deprecated.- Specified by:
isEmptyin interfaceCollection<E>- Overrides:
isEmptyin classAbstractCollection<R>
-
iterator
-
spliterator
Deprecated. -
stream
-
parallelStream
-
forEach
-
add
Deprecated.- Specified by:
addin interfaceCollection<E>- Overrides:
addin classAbstractCollection<R>
-
remove
Deprecated.- Specified by:
removein interfaceCollection<E>- Overrides:
removein classAbstractCollection<R>
-
addAll
Deprecated.- Specified by:
addAllin interfaceCollection<E>- Overrides:
addAllin classAbstractCollection<R>
-
removeAll
Deprecated.- Specified by:
removeAllin interfaceCollection<E>- Overrides:
removeAllin classAbstractCollection<R>
-
retainAll
Deprecated.- Specified by:
retainAllin interfaceCollection<E>- Overrides:
retainAllin classAbstractCollection<R>
-
clear
public void clear()Deprecated.- Specified by:
clearin interfaceCollection<E>- Overrides:
clearin classAbstractCollection<R>
-
CollectionMapperinstead