Class CollectionToStreamMapper<T>
java.lang.Object
org.keycloak.models.sessions.infinispan.stream.CollectionToStreamMapper<T>
- Type Parameters:
T
- The type of the collection elements.
- All Implemented Interfaces:
Function<Collection<T>,
Stream<T>>
@ProtoTypeId(65609)
public class CollectionToStreamMapper<T>
extends Object
implements Function<Collection<T>,Stream<T>>
A
Function
that converts the Collection
to a Stream
.
Same as Collection::stream
.
Infinispan can marshall lambdas, by using SerializedLambda
but it is not as efficient and ProtoStream
marshaller.