@ThreadSafe
public interface KeyValueFilter<K,V>
KeyFilter
class. This filter should be used in most cases over KeyFilter
since it allows
for more control of the filtering since it provides the ability to filter on the value and metadata in addition
to the key.Modifier and Type | Method and Description |
---|---|
boolean |
accept(K key,
V value,
Metadata metadata) |
default MediaType |
format() |
boolean accept(K key, V value, Metadata metadata)
key
- key to testvalue
- value to use (could be null for the case of removal)metadata
- metadatadefault MediaType format()
accept(Object, Object, Metadata)
operation.
If null, the filter will receive data as it's stored.Copyright © 2020 JBoss, a division of Red Hat. All rights reserved.