Package org.javacord.core.entity.emoji
Class UnicodeEmojiImpl
- java.lang.Object
-
- org.javacord.core.entity.emoji.UnicodeEmojiImpl
-
- All Implemented Interfaces:
Emoji
,Mentionable
,Specializable<Emoji>
public class UnicodeEmojiImpl extends java.lang.Object implements Emoji
The representation of a unicodeEmoji
.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<CustomEmoji>
asCustomEmoji()
java.util.Optional<KnownCustomEmoji>
asKnownCustomEmoji()
java.util.Optional<java.lang.String>
asUnicodeEmoji()
static UnicodeEmojiImpl
fromString(java.lang.String emoji)
Gets a unicode emoji by its string representation.java.lang.String
getMentionTag()
boolean
isAnimated()
java.lang.String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.javacord.api.entity.emoji.Emoji
equalsEmoji, equalsEmoji, isCustomEmoji, isKnownCustomEmoji, isUnicodeEmoji
-
Methods inherited from interface org.javacord.api.util.Specializable
as
-
-
-
-
Method Detail
-
fromString
public static UnicodeEmojiImpl fromString(java.lang.String emoji)
Gets a unicode emoji by its string representation.- Parameters:
emoji
- The emoji string.- Returns:
- The object, representing the emoji from the given string.
-
getMentionTag
public java.lang.String getMentionTag()
- Specified by:
getMentionTag
in interfaceMentionable
-
asUnicodeEmoji
public java.util.Optional<java.lang.String> asUnicodeEmoji()
- Specified by:
asUnicodeEmoji
in interfaceEmoji
-
asCustomEmoji
public java.util.Optional<CustomEmoji> asCustomEmoji()
- Specified by:
asCustomEmoji
in interfaceEmoji
-
asKnownCustomEmoji
public java.util.Optional<KnownCustomEmoji> asKnownCustomEmoji()
- Specified by:
asKnownCustomEmoji
in interfaceEmoji
-
isAnimated
public boolean isAnimated()
- Specified by:
isAnimated
in interfaceEmoji
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-