Interface MessageFilter

All Known Implementing Classes:
SenderRoleFilter

public interface MessageFilter
Instances of classes that implement this interface are used to filter messages when consulting the mailbox.
Since:
MaDKit 5.0.4
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Tests if a specified message matches the requirement.
  • Method Details

    • accept

      boolean accept(Message m)
      Tests if a specified message matches the requirement.
      Parameters:
      m - the message to test.
      Returns:
      true if and only if the message matches the requirement.