org.axonframework.test.matchers
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
Method Summary |
boolean |
accept(Field field)
Indicates whether the given field should be accepted for processing, or skipped/ignored. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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
Copyright © 2010-2016. All Rights Reserved.