public enum MessageEntityType extends Enum<MessageEntityType>
| Enum Constant and Description |
|---|
BOLD |
BOT_COMMAND |
CODE |
EMAIL |
HASHTAG |
ITALIC |
MENTION |
PRE |
TEXT_LINK |
TEXT_MENTION |
UNKNOWN |
URL |
| Modifier and Type | Method and Description |
|---|---|
static MessageEntityType |
getType(String value)
Gets the MessageEntityType relating to the value that is passed to the function
|
String |
getValue()
Gets the value of the enum in lowercase
|
static MessageEntityType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MessageEntityType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MessageEntityType MENTION
public static final MessageEntityType HASHTAG
public static final MessageEntityType BOT_COMMAND
public static final MessageEntityType URL
public static final MessageEntityType EMAIL
public static final MessageEntityType BOLD
public static final MessageEntityType ITALIC
public static final MessageEntityType CODE
public static final MessageEntityType PRE
public static final MessageEntityType TEXT_LINK
public static final MessageEntityType TEXT_MENTION
public static final MessageEntityType UNKNOWN
public static MessageEntityType[] values()
for (MessageEntityType c : MessageEntityType.values()) System.out.println(c);
public static MessageEntityType 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 String getValue()
public static MessageEntityType getType(String value)
value - The value you want to match to a MessageEntityTypeCopyright © 2017. All rights reserved.