Enum TextInputStyle
- java.lang.Object
-
- java.lang.Enum<TextInputStyle>
-
- org.javacord.api.entity.message.component.TextInputStyle
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<TextInputStyle>
public enum TextInputStyle extends java.lang.Enum<TextInputStyle>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TextInputStylefromId(int style)Gets a TextInputStyle by its id.intgetValue()The text input style internal value.java.lang.StringtoString()static TextInputStylevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static TextInputStyle[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNKNOWN
public static final TextInputStyle UNKNOWN
-
SHORT
public static final TextInputStyle SHORT
-
PARAGRAPH
public static final TextInputStyle PARAGRAPH
-
-
Method Detail
-
values
public static TextInputStyle[] 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 (TextInputStyle c : TextInputStyle.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TextInputStyle 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
-
getValue
public int getValue()
The text input style internal value.- Returns:
- The text input style's internal value
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Enum<TextInputStyle>
-
fromId
public static TextInputStyle fromId(int style)
Gets a TextInputStyle by its id.- Parameters:
style- The style's internal value.- Returns:
- A TextInputStyle enumerator.
-
-