Class Reply
Object
Reply
- Direct Known Subclasses:
ReplyFlow
A reply consists of update conditionals and an action to be applied on the update.
If an update satisfies the conditions set by the reply, then it's safe to actOn(BaseAbilityBot, Update).
- Author:
- Abbas Abou Daya
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionBiConsumer<BaseAbilityBot,Update> action()voidactOn(BaseAbilityBot bot, Update update) enableStats(String name) booleaninthashCode()booleanisOkFor(Update update) name()static Replyof(BiConsumer<BaseAbilityBot, Update> action, Predicate<Update>... conditions) static Replyof(BiConsumer<BaseAbilityBot, Update> action, List<Predicate<Update>> conditions) booleanstream()toString()
-
Field Details
-
conditions
-
action
-
-
Method Details
-
of
public static Reply of(BiConsumer<BaseAbilityBot, Update> action, List<Predicate<Update>> conditions) -
of
@SafeVarargs public static Reply of(BiConsumer<BaseAbilityBot, Update> action, Predicate<Update>... conditions) -
isOkFor
public boolean isOkFor(Update update) -
actOn
-
conditions
-
action
-
stream
-
enableStats
-
statsEnabled
public boolean statsEnabled() -
name
-
equals
-
hashCode
public int hashCode() -
toString
-