public enum Flag extends Enum<Flag> implements Predicate<org.telegram.telegrambots.meta.api.objects.Update>
Update.
They can be used on Ability.AbilityBuilder.flag(Predicate[]) and on the post conditions in Ability.AbilityBuilder.reply(Consumer, Predicate[]).
| Enum Constant and Description |
|---|
CALLBACK_QUERY |
CAPTION |
CHANNEL_POST |
CHOSEN_INLINE_QUERY |
DOCUMENT |
EDITED_CHANNEL_POST |
EDITED_MESSAGE |
INLINE_QUERY |
LOCATION |
MESSAGE |
NONE |
PHOTO |
REPLY |
TEXT |
| Modifier and Type | Method and Description |
|---|---|
boolean |
test(org.telegram.telegrambots.meta.api.objects.Update update) |
static Flag |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Flag[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Flag NONE
public static final Flag MESSAGE
public static final Flag CALLBACK_QUERY
public static final Flag CHANNEL_POST
public static final Flag EDITED_CHANNEL_POST
public static final Flag EDITED_MESSAGE
public static final Flag INLINE_QUERY
public static final Flag CHOSEN_INLINE_QUERY
public static final Flag REPLY
public static final Flag DOCUMENT
public static final Flag TEXT
public static final Flag PHOTO
public static final Flag LOCATION
public static final Flag CAPTION
public static Flag[] values()
for (Flag c : Flag.values()) System.out.println(c);
public static Flag valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic boolean test(org.telegram.telegrambots.meta.api.objects.Update update)
test in interface Predicate<org.telegram.telegrambots.meta.api.objects.Update>Copyright © 2019. All rights reserved.