Class RootFilter
- java.lang.Object
-
- com.jtelegram.api.commands.filters.AbstractCommandFilter
-
- com.jtelegram.api.commands.filters.RootFilter
-
- All Implemented Interfaces:
CommandFilter
public class RootFilter extends AbstractCommandFilter
ACommandFilterthat merely groups filters.
-
-
Constructor Summary
Constructors Constructor Description RootFilter(CommandFilter filter, CommandFilter... children)Creates a RootFilter with given children.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanpreTest(TextMessageEvent event, Command command)-
Methods inherited from class com.jtelegram.api.commands.filters.AbstractCommandFilter
test
-
-
-
-
Constructor Detail
-
RootFilter
public RootFilter(CommandFilter filter, CommandFilter... children)
Creates a RootFilter with given children.- Parameters:
filter- The first filterchildren- The remaining children filters, which will be checked in order if this filter tests to betrue
-
-
Method Detail
-
preTest
protected boolean preTest(TextMessageEvent event, Command command)
- Specified by:
preTestin classAbstractCommandFilter
-
-