Class RemoveFunction<K,V>
java.lang.Object
org.infinispan.multimap.impl.function.RemoveFunction<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.remove(Object) and EmbeddedMultimapCache.remove(Object, Object) to remove a key or a key/value pair from
the Multimap Cache, if such exists.
apply(EntryView.ReadWriteEntryView) will return Boolean.TRUE when the operation removed a key or a
key/value pair and will return Boolean.FALSE if the key or key/value pair does not exist
- Since:
- 9.2
- Author:
- Katia Aresti - karesti@redhat.com
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.infinispan.commons.marshall.AdvancedExternalizer<RemoveFunction> -
Constructor Summary
ConstructorsConstructorDescriptionCall this constructor to create a function that removed a keyRemoveFunction(V value, boolean supportsDuplicates) Call this constructor to create a function that removed a key/value pair -
Method Summary
-
Field Details
-
EXTERNALIZER
public static final org.infinispan.commons.marshall.AdvancedExternalizer<RemoveFunction> EXTERNALIZER
-
-
Constructor Details
-
RemoveFunction
public RemoveFunction()Call this constructor to create a function that removed a key -
RemoveFunction
Call this constructor to create a function that removed a key/value pair- Parameters:
value- value to be removed
-
-
Method Details