Class AndCommandMessageFilter
java.lang.Object
org.axonframework.commandhandling.distributed.commandfilter.AndCommandMessageFilter
- All Implemented Interfaces:
Serializable,CommandMessageFilter
A
CommandMessageFilter implementation that matches whenever both supplied CommandMessageFilter
instances match.- Since:
- 4.0
- Author:
- Allard Buijze
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAndCommandMessageFilter(CommandMessageFilter first, CommandMessageFilter second) Initialize the filter to match when both thefirstand thesecondfilter match. -
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.axonframework.commandhandling.distributed.CommandMessageFilter
and, negate, or
-
Constructor Details
-
AndCommandMessageFilter
@ConstructorProperties({"first","second"}) public AndCommandMessageFilter(CommandMessageFilter first, CommandMessageFilter second) Initialize the filter to match when both thefirstand thesecondfilter match.- Parameters:
first- the first filter to matchsecond- the second filter to match
-
-
Method Details
-
matches
Description copied from interface:CommandMessageFilterIndicates whether the givencommandMessagematches this filter.- Specified by:
matchesin interfaceCommandMessageFilter- Parameters:
commandMessage- the message to match- Returns:
trueif the command matches, otherwisefalse
-
equals
-
hashCode
public int hashCode() -
toString
-