Modifier and Type | Method | Description |
---|---|---|
static EmbedType |
fromKey(java.lang.String key) |
Attempts to find the EmbedType from the provided key.
|
static EmbedType |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static EmbedType[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EmbedType IMAGE
public static final EmbedType VIDEO
public static final EmbedType LINK
public static final EmbedType RICH
public static final EmbedType UNKNOWN
public static EmbedType[] values()
for (EmbedType c : EmbedType.values()) System.out.println(c);
public static EmbedType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static EmbedType fromKey(java.lang.String key)