Package | Description |
---|---|
org.infinispan.commons.api.functional |
Commons Functional API package
|
Modifier and Type | Method and Description |
---|---|
Traversable<EntryView.ReadEntryView<K,V>> |
FunctionalMap.ReadOnlyMap.entries()
Provides a
Traversable that allows clients to navigate all cached entries. |
<R> Traversable<R> |
FunctionalMap.ReadWriteMap.evalAll(Function<EntryView.ReadWriteEntryView<K,V>,R> f)
Evaluate a read-write
Function operation with the
EntryView.ReadWriteEntryView of the value associated with the key, for all
existing keys, and returns a Traversable to navigate each of
the Function invocation returns. |
<R> Traversable<R> |
FunctionalMap.ReadWriteMap.evalMany(Map<? extends K,? extends V> entries,
BiFunction<V,EntryView.ReadWriteEntryView<K,V>,R> f)
Evaluate a read-write
BiFunction , with a value passed in and
a EntryView.ReadWriteEntryView of the value associated with
the key, for each of the keys in the set passed in, and
returns an Traversable to navigate each of the
BiFunction invocation returns. |
<R> Traversable<R> |
FunctionalMap.ReadOnlyMap.evalMany(Set<? extends K> keys,
Function<EntryView.ReadEntryView<K,V>,R> f)
Evaluate a read-only function on a key and potential value associated in
the functional map, for each of the keys in the set passed in, and
returns an
Traversable to work on each computed function's result. |
<R> Traversable<R> |
FunctionalMap.ReadWriteMap.evalMany(Set<? extends K> keys,
Function<EntryView.ReadWriteEntryView<K,V>,R> f)
Evaluate a read-write
Function operation with the
EntryView.ReadWriteEntryView of the value associated with the key, for each
of the keys in the set passed in, and returns a Traversable
to navigate each of the Function invocation returns. |
Traversable<T> |
Traversable.filter(Predicate<? super T> p)
An intermediate operation that returns a traversable containing elements
matching the given predicate.
|
<R> Traversable<R> |
Traversable.flatMap(Function<? super T,? extends Traversable<? extends R>> f)
An intermediate operation that returns a traversable containing the
results of replacing each element of this traversable with the contents
of a traversable produced by applying the provided function to each element.
|
Traversable<K> |
FunctionalMap.ReadOnlyMap.keys()
Provides a
Traversable that allows clients to navigate all cached keys. |
<R> Traversable<R> |
Traversable.map(Function<? super T,? extends R> f)
An intermediate operation that returns a traversable containing the
results of applying the given function over the elements of the
traversable.
|
Modifier and Type | Method and Description |
---|---|
<R> Traversable<R> |
Traversable.flatMap(Function<? super T,? extends Traversable<? extends R>> f)
An intermediate operation that returns a traversable containing the
results of replacing each element of this traversable with the contents
of a traversable produced by applying the provided function to each element.
|
Copyright © 2017 JBoss, a division of Red Hat. All rights reserved.