Class ContainsFunction<K,V>
- java.lang.Object
-
- org.infinispan.multimap.impl.function.ContainsFunction<K,V>
-
- All Implemented Interfaces:
Serializable,Function<org.infinispan.functional.EntryView.ReadWriteEntryView<K,Bucket<V>>,Boolean>,BaseFunction<K,V,Boolean>,org.infinispan.util.function.SerializableFunction<org.infinispan.functional.EntryView.ReadWriteEntryView<K,Bucket<V>>,Boolean>
public final class ContainsFunction<K,V> extends Object implements BaseFunction<K,V,Boolean>
Serializable function used byEmbeddedMultimapCache.containsKey(Object)andEmbeddedMultimapCache.containsEntry(Object, Object).- Since:
- 9.2
- Author:
- Katia Aresti - karesti@redhat.com
- See Also:
- Marshalling of Functions, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static org.infinispan.commons.marshall.AdvancedExternalizer<ContainsFunction>EXTERNALIZER
-
Constructor Summary
Constructors Constructor Description ContainsFunction()ContainsFunction(V value)Call this constructor to create a function that checks if a key/value pair exists if the key is null, the value will be searched in any key if the value is null, the key will be searched key-value pair are not null, the entry will be searched key-value pair are null, aNullPointerExceptionwill be raised
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Booleanapply(org.infinispan.functional.EntryView.ReadWriteEntryView<K,Bucket<V>> entryView)
-
-
-
Field Detail
-
EXTERNALIZER
public static final org.infinispan.commons.marshall.AdvancedExternalizer<ContainsFunction> EXTERNALIZER
-
-
Constructor Detail
-
ContainsFunction
public ContainsFunction()
-
ContainsFunction
public ContainsFunction(V value)
Call this constructor to create a function that checks if a key/value pair exists- if the key is null, the value will be searched in any key
- if the value is null, the key will be searched
- key-value pair are not null, the entry will be searched
- key-value pair are null, a
NullPointerExceptionwill be raised
- Parameters:
value- value to be checked on the key
-
-