Interface MapPredicate<K,V>

Type Parameters:
K - the map key type
V - the map value type
All Known Implementing Classes:
PagingPredicate, PredicateBuilder
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface MapPredicate<K,V>
Generic predicate for filtering distributed map entries by key and value.

Unlike the SQL-oriented Predicate (which operates on SqlRow), this interface works directly with typed map entries. It supports attribute-based filtering via the Predicates factory class, which provides the full predicate set: equal, notEqual, greaterThan, lessThan, between, like, ilike, regex, partitionPredicate, pagingPredicate, in, instanceOf, fluent PredicateBuilder, and logical composition (AND, OR, NOT).

Implementations are typically records created via Predicates static methods. Thread-safe: all built-in implementations are immutable.

  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    test(K key, V value)
    Tests whether the given map entry matches this predicate.
  • Method Details

    • test

      boolean test(K key, V value)
      Tests whether the given map entry matches this predicate.
      Parameters:
      key - the entry key (non-null)
      value - the entry value (non-null)
      Returns:
      true if the entry matches, false otherwise