Class MessageKindFilter<M extends Message>

java.lang.Object
eu.bandm.tools.message.SingleSender<M>
eu.bandm.tools.message.MessageKindFilter<M>
All Implemented Interfaces:
MessageReceiver<M>

public class MessageKindFilter<M extends Message> extends SingleSender<M> implements MessageReceiver<M>
A filter which propagates only those messages the Message.Kind of which is currently in the selection.
  • Field Details

  • Constructor Details

    • MessageKindFilter

      public MessageKindFilter(MessageReceiver<? super M> d)
      Constructor with no kind is initially selected.
      Parameters:
      d - the receiver of the messages.
    • MessageKindFilter

      public MessageKindFilter(MessageReceiver<? super M> d, Message.Kind... kk)
      Constructor with given kinds initially selected.
      Parameters:
      d - the receiver of the messages.
      kk - the kinds initially selected.
  • Method Details