Package com.pengrad.telegrambot.model
Enum MessageEntity.Type
- java.lang.Object
-
- java.lang.Enum<MessageEntity.Type>
-
- com.pengrad.telegrambot.model.MessageEntity.Type
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<MessageEntity.Type>
- Enclosing class:
- MessageEntity
public static enum MessageEntity.Type extends java.lang.Enum<MessageEntity.Type>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description boldbot_commandcashtagcodeemailhashtagitalicmentionphone_numberprestrikethroughtext_linktext_mentionunderlineurl
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MessageEntity.TypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static MessageEntity.Type[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
mention
public static final MessageEntity.Type mention
-
hashtag
public static final MessageEntity.Type hashtag
-
cashtag
public static final MessageEntity.Type cashtag
-
bot_command
public static final MessageEntity.Type bot_command
-
url
public static final MessageEntity.Type url
-
email
public static final MessageEntity.Type email
-
phone_number
public static final MessageEntity.Type phone_number
-
bold
public static final MessageEntity.Type bold
-
italic
public static final MessageEntity.Type italic
-
code
public static final MessageEntity.Type code
-
pre
public static final MessageEntity.Type pre
-
text_link
public static final MessageEntity.Type text_link
-
text_mention
public static final MessageEntity.Type text_mention
-
underline
public static final MessageEntity.Type underline
-
strikethrough
public static final MessageEntity.Type strikethrough
-
-
Method Detail
-
values
public static MessageEntity.Type[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (MessageEntity.Type c : MessageEntity.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MessageEntity.Type valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-