org.apache.geode.cache.snapshot

## Interface SnapshotFilter<K,V>

- Type Parameters:
    `K` - the key type
    `V` - the value type
  All Superinterfaces:
    java.io.Serializable

      public interface SnapshotFilter<K,V>
      extends java.io.Serializable

  Filters region entries for inclusion into a snapshot.
  Since:
    GemFire 7.0
  See Also:
    `CacheSnapshotService`, `RegionSnapshotService`

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `accept(java.util.Map.Entry<K,V> entry)` Returns true if the entry passes the filter criteria; false otherwise.

- - ### Method Detail

    - #### accept

          boolean accept(java.util.Map.Entry<K,V> entry)

      Returns true if the entry passes the filter criteria; false otherwise. Invoking `Entry.getValue` may incur additional overhead to deserialize the entry value.
      Parameters:
        `entry` - the cache entry to evaluate
      Returns:
        true if the entry is accepted by the filter