Package org.javacord.api.entity
Interface Nameable
-
- All Superinterfaces:
Formattable
- All Known Subinterfaces:
Activity,ApplicationInfo,ChannelCategory,CustomEmoji,EditableEmbedField,EmbedAuthor,EmbedField,EmbedProvider,KnownCustomEmoji,MessageAuthor,Role,Server,ServerChannel,ServerStageVoiceChannel,ServerTextChannel,ServerVoiceChannel,User
- All Known Implementing Classes:
AuditLogChangeType,Region
public interface Nameable extends Formattable
This class represents an entity which has a name.If used in a format string, a
Nameablewill be rendered as the entity's name unless the alternate flag is given.- See Also:
String.format(String, Object...)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidformatTo(Formatter formatter, int flags, int width, int precision)StringgetName()Gets the name of the entity.
-
-
-
Method Detail
-
getName
String getName()
Gets the name of the entity.- Returns:
- The name of the entity.
-
formatTo
default void formatTo(Formatter formatter, int flags, int width, int precision)
- Specified by:
formatToin interfaceFormattable
-
-