Package madkit.message
Class ConversationFilter
java.lang.Object
madkit.message.ConversationFilter
- All Implemented Interfaces:
MessageFilter
A filter that selects messages based on their conversation ID.
- Since:
- MaDKit 5.0.4
- Version:
- 0.9
- Author:
- Fabien Michel
-
Constructor Summary
ConstructorDescriptionConversationFilter
(Message origin) a new filter that acts according to the conversationID of a message. -
Method Summary
-
Constructor Details
-
ConversationFilter
a new filter that acts according to the conversationID of a message.- Parameters:
origin
- the message's ID which will be used to check the acceptability of message.
-
-
Method Details
-
accept
Description copied from interface:MessageFilter
Tests if a specified message matches the requirement.- Specified by:
accept
in interfaceMessageFilter
- Parameters:
m
- the message to test.- Returns:
true
if and only if the message matches the requirement.
-