public class StreamMarshalling
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
StreamMarshalling.StreamMarshallingExternalizer |
| Modifier and Type | Method and Description |
|---|---|
static java.util.function.Predicate<java.lang.Object> |
alwaysTruePredicate()
Predicate taht always returns true irrespective of the value provided
|
static <K,V> java.util.function.Function<java.util.Map.Entry<K,V>,K> |
entryToKeyFunction()
Provides a function that returns the key of the entry when invoked.
|
static <K,V> java.util.function.Function<java.util.Map.Entry<K,V>,V> |
entryToValueFunction()
Provides a function that returns the value of the entry when invoked.
|
static java.util.function.Predicate<java.lang.Object> |
equalityPredicate(java.lang.Object object)
Provides a predicate that returns true when the object is equal.
|
static <T> java.util.function.Function<T,T> |
identity()
Same as
Function.identity() except that this instance is also able to be marshalled by Infinispan. |
static <K,V> java.util.function.Function<K,CacheEntry<K,V>> |
keyToEntryFunction()
Provides a function that given a key will return the
CacheEntry that maps to this
key. |
static java.util.function.Predicate<java.lang.Object> |
nonNullPredicate()
Predicate that returns true if the object passed to it is not null.
|
public static java.util.function.Predicate<java.lang.Object> equalityPredicate(java.lang.Object object)
object - the instance to test equality onpublic static java.util.function.Predicate<java.lang.Object> nonNullPredicate()
public static java.util.function.Predicate<java.lang.Object> alwaysTruePredicate()
public static <K,V> java.util.function.Function<java.util.Map.Entry<K,V>,K> entryToKeyFunction()
K - key type of the entryV - value type of the entrypublic static <K,V> java.util.function.Function<java.util.Map.Entry<K,V>,V> entryToValueFunction()
K - key type of the entryV - value type of the entrypublic static <T> java.util.function.Function<T,T> identity()
Function.identity() except that this instance is also able to be marshalled by Infinispan.T - any typepublic static <K,V> java.util.function.Function<K,CacheEntry<K,V>> keyToEntryFunction()
CacheEntry that maps to this
key. This function only works when used with a CacheStream returned
from the desired Cache. The entry will be read from the Cache of which the
CacheStream was created from.K - the key typeV - the expected value type of the entry