Skip to content
jpgcc edited this page Dec 29, 2014 · 2 revisions

AndMessageFilter

This feedback message filter matches messages that are matched by all the added filters (thus implementing a logical AND operation) — thus allowing one to flexibly compose existing filters.

How to use

The filters to be composed can be provided in the constructor:

IFeedbackMessageFilter filter = new AndMessageFilter(
     new ComponentFeedbackMessageFilter(someComponent),
     new ComponentFeedbackMessageFilter(someOtherComponent)
);

or they can be added (chaining supported):

IFeedbackMessageFilter filter = new AndMessageFilter()
    .add(new ComponentFeedbackMessageFilter(someComponent))
    .add(new ComponentFeedbackMessageFilter(someOtherComponent));

See also

OrMessageFilter

Clone this wiki locally