Class PredicateFilter<T,E>

All Implemented Interfaces:
ExternalizableLite, PortableObject, Filter<T>, EntryFilter<Object,T>, IndexAwareFilter<Object,T>, QueryRecorderFilter<T>, Serializable

public class PredicateFilter<T,E> extends ExtractorFilter<T,E>
A java.util.function.Predicate based ExtractorFilter.
Since:
12.2.1
Author:
as 2014.08.25, bo 2015.05.27
See Also:
  • Field Details

    • m_predicate

      protected Predicate<? super E> m_predicate
      The Predicate for filtering extracted values.
  • Constructor Details

    • PredicateFilter

      public PredicateFilter()
      Deserialization constructor.
    • PredicateFilter

      public PredicateFilter(Predicate<? super E> predicate)
      Constructs a PredicateFilter.
      Parameters:
      predicate - predicate for testing the value
    • PredicateFilter

      public PredicateFilter(ValueExtractor<? super T,? extends E> extractor, Predicate<? super E> predicate)
      Constructs a PredicateFilter.
      Parameters:
      extractor - the ValueExtractor for extracting a value
      predicate - predicate for testing the extracted value
    • PredicateFilter

      public PredicateFilter(String sMethodName, Predicate<? super E> predicate)
      Constructs a PredicateFilter.
      Parameters:
      sMethodName - the method to extract a value for testing
      predicate - predicate for testing the extracted value
  • Method Details