Interface AbstractListValueCondition.Filterable<T>

Type Parameters:
T - the Java type related to the database column type
All Known Implementing Classes:
IsIn, IsInCaseInsensitive, IsInCaseInsensitiveWhenPresent, IsInWhenPresent, IsNotIn, IsNotInCaseInsensitive, IsNotInCaseInsensitiveWhenPresent, IsNotInWhenPresent
Enclosing class:
AbstractListValueCondition<T>

public static interface AbstractListValueCondition.Filterable<T>
Conditions may implement Filterable to add optionality to rendering.

If a condition is Filterable, then a user may add a filter to the usage of the condition that makes a decision whether to render the condition at runtime. Conditions that fail the filter will be dropped from the rendered SQL.

Implementations of Filterable may call AbstractListValueCondition.filterSupport(Predicate, Function, AbstractListValueCondition, Supplier) as a common implementation of the filtering algorithm.

  • Method Summary

    Modifier and Type
    Method
    Description
    filter(Predicate<? super T> predicate)
    If renderable and the value matches the predicate, returns this condition.
  • Method Details

    • filter

      AbstractListValueCondition<T> filter(Predicate<? super T> predicate)
      If renderable and the value matches the predicate, returns this condition. Else returns a condition that will not render.
      Parameters:
      predicate - predicate applied to the value, if renderable
      Returns:
      this condition if renderable and the value matches the predicate, otherwise a condition that will not render.