Class RegexFilter<T,E>

Type Parameters:
T - the type of the input argument to the filter
E - the type of the extracted attribute to use for comparison
All Implemented Interfaces:
ExternalizableLite, PortableObject, Filter<T>, EntryFilter<Object,T>, IndexAwareFilter<Object,T>, QueryRecorderFilter<T>, Serializable

public class RegexFilter<T,E> extends ComparisonFilter<T,E,String>
Filter which uses the regular expression pattern match defined by the Pattern.matches(String, CharSequence) contract.
Since:
Coherence 3.6
Author:
gg 2010.05.02
See Also:
  • Constructor Details

    • RegexFilter

      public RegexFilter()
      Default constructor (necessary for the ExternalizableLite interface).
    • RegexFilter

      public RegexFilter(ValueExtractor<? super T,? extends E> extractor, String sRegex)
      Construct a RegexFilter for testing pattern matching.
      Parameters:
      extractor - the ValueExtractor to use by this filter
      sRegex - the regular expression to match the result with
    • RegexFilter

      public RegexFilter(String sMethod, String sRegex)
      Construct a RegexFilter for testing pattern matching.
      Parameters:
      sMethod - the name of the method to invoke via reflection
      sRegex - the regular expression to match the result with
  • Method Details