Class MatchAllFieldFilter

java.lang.Object
org.axonframework.test.matchers.MatchAllFieldFilter
All Implemented Interfaces:
FieldFilter

public class MatchAllFieldFilter extends Object implements FieldFilter
FieldFilter that delegates to an arbitrary number of other filters. This filter accepts any field that is accepted by all registered filters.

By default, all fields are accepted.

Since:
2.4.1
Author:
Allard Buijze
  • Constructor Details

    • MatchAllFieldFilter

      public MatchAllFieldFilter(Collection<FieldFilter> filters)
      Initializes a filter that accepts any field that is accepted by all given filters
      Parameters:
      filters - The filters to use to evaluate a given Field
  • Method Details

    • accept

      public boolean accept(Field field)
      Description copied from interface: FieldFilter
      Indicates whether the given field should be accepted for processing, or skipped/ignored.
      Specified by:
      accept in interface FieldFilter
      Parameters:
      field - The field to evaluate
      Returns:
      true when the field should be processed, otherwise false