Interface FilterCondition<T,V>

Type Parameters:
T - the type of the object to be filtered
V - the type of the value used in the filter condition
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 FilterCondition<T,V>
Functional interface representing a condition used for filtering objects.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    match(T object, V value)
    Evaluates whether the given object satisfies the specified condition with the provided value.
  • Method Details

    • match

      boolean match(T object, V value)
      Evaluates whether the given object satisfies the specified condition with the provided value.
      Parameters:
      object - the object to be tested against the condition
      value - the value used in the condition for testing the object
      Returns:
      true if the object matches the condition with the provided value, false otherwise