Interface CommandFilter
-
- All Known Subinterfaces:
CommandHandler
- All Known Implementing Classes:
AbstractCommandFilter
,ChatTypeFilter
,MentionFilter
,RegexFilter
,RootFilter
,TextFilter
public interface CommandFilter
Filters messages out according for if they match certain test criteria, as defined by the implementing sub-class.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
test(TextMessageEvent event, Command command)
Checks to see if the given event and command test to betrue
according to this filter.
-
-
-
Method Detail
-
test
boolean test(TextMessageEvent event, Command command)
Checks to see if the given event and command test to betrue
according to this filter.- Parameters:
event
- The event to be testedcommand
- The command data executed in this event- Returns:
- True if and only if this filter allows this event and command combination to go ahead.
-
-