Class AbstractKeyValueFilterConverter<K,V,C>

java.lang.Object
org.infinispan.filter.AbstractKeyValueFilterConverter<K,V,C>
All Implemented Interfaces:
Converter<K,V,C>, KeyValueFilter<K,V>, KeyValueFilterConverter<K,V,C>
Direct Known Subclasses:
CacheEventFilterConverterAsKeyValueFilterConverter, IterationFilter

public abstract class AbstractKeyValueFilterConverter<K,V,C> extends Object implements KeyValueFilterConverter<K,V,C>
This is a base class that should be used when implementing a KeyValueFilterConverter that provides default implementations for the KeyValueFilter.accept(Object, Object, org.infinispan.metadata.Metadata) and Converter.convert(Object, Object, org.infinispan.metadata.Metadata) methods so they just call the KeyValueFilterConverter.filterAndConvert(Object, Object, org.infinispan.metadata.Metadata) method and then do the right thing.
Since:
7.0
Author:
wburns
  • Constructor Details

    • AbstractKeyValueFilterConverter

      public AbstractKeyValueFilterConverter()
  • Method Details

    • convert

      public final C convert(K key, V value, Metadata metadata)
      Specified by:
      convert in interface Converter<K,V,C>
    • accept

      public final boolean accept(K key, V value, Metadata metadata)
      Specified by:
      accept in interface KeyValueFilter<K,V>
      Parameters:
      key - key to test
      value - value to use (could be null for the case of removal)
      metadata - metadata
      Returns:
      true if the given key is accepted by this filter.