Class ConversationFilter

java.lang.Object
madkit.messages.ConversationFilter
All Implemented Interfaces:
Predicate<Message>

public class ConversationFilter extends Object implements Predicate<Message>
A filter that selects messages based on their conversation ID.
Since:
MaDKit 5.0.4
  • Constructor Details

    • ConversationFilter

      public ConversationFilter(Message origin)
      a 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

    • test

      public boolean test(Message m)
      A filter that acts according to the conversationID of a message.
      Specified by:
      test in interface Predicate<Message>
      Parameters:
      m - the message to be tested