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>
Serializable function used by
EmbeddedMultimapCache.containsKey(Object) and
EmbeddedMultimapCache.containsEntry(Object, Object).- Since:
- 9.2
- Author:
- Katia Aresti - karesti@redhat.com
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.infinispan.commons.marshall.AdvancedExternalizer<ContainsFunction> -
Constructor Summary
ConstructorsConstructorDescriptionContainsFunction(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
-
Field Details
-
EXTERNALIZER
public static final org.infinispan.commons.marshall.AdvancedExternalizer<ContainsFunction> EXTERNALIZER
-
-
Constructor Details
-
ContainsFunction
public ContainsFunction() -
ContainsFunction
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
-
-
Method Details