Package net.dv8tion.jda.api
Enum MessageBuilder.Formatting
- java.lang.Object
-
- java.lang.Enum<MessageBuilder.Formatting>
-
- net.dv8tion.jda.api.MessageBuilder.Formatting
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<MessageBuilder.Formatting>
- Enclosing class:
- MessageBuilder
public static enum MessageBuilder.Formatting extends java.lang.Enum<MessageBuilder.Formatting>
Holds the available formatting used inMessageBuilder.append(java.lang.CharSequence, net.dv8tion.jda.api.MessageBuilder.Formatting...)
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BLOCK
BOLD
ITALICS
STRIKETHROUGH
UNDERLINE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MessageBuilder.Formatting
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static MessageBuilder.Formatting[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ITALICS
public static final MessageBuilder.Formatting ITALICS
-
BOLD
public static final MessageBuilder.Formatting BOLD
-
STRIKETHROUGH
public static final MessageBuilder.Formatting STRIKETHROUGH
-
UNDERLINE
public static final MessageBuilder.Formatting UNDERLINE
-
BLOCK
public static final MessageBuilder.Formatting BLOCK
-
-
Method Detail
-
values
public static MessageBuilder.Formatting[] 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 (MessageBuilder.Formatting c : MessageBuilder.Formatting.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MessageBuilder.Formatting 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
-
-