Class UnicodeEmojiImpl
java.lang.Object
com.mewna.catnip.entity.impl.misc.UnicodeEmojiImpl
- All Implemented Interfaces:
Entity
,Emoji
,Emoji.UnicodeEmoji
,HasNullableName
,Snowflake
,Timestamped
,RequiresCatnip
- Since:
- 9/5/18.
- Author:
- natanbc
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.mewna.catnip.entity.misc.Emoji
Emoji.ActivityEmoji, Emoji.CustomEmoji, Emoji.UnicodeEmoji
Nested classes/interfaces inherited from interface com.mewna.catnip.entity.partials.Timestamped
Timestamped.TimestampStyle
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.mewna.catnip.entity.misc.Emoji.UnicodeEmoji
animated, custom, forMessage, forReaction, id, idAsLong, is, managed, roles, user
Methods inherited from interface com.mewna.catnip.entity.partials.Snowflake
creationTime, creationTimestamp
Methods inherited from interface com.mewna.catnip.entity.partials.Timestamped
asDiscordTimestamp, parseTimestamp
-
Constructor Details
-
UnicodeEmojiImpl
public UnicodeEmojiImpl() -
UnicodeEmojiImpl
-
-
Method Details
-
catnip
- Specified by:
catnip
in interfaceRequiresCatnip
-
hashCode
public int hashCode() -
equals
-
toString
-
builder
-
catnip
Description copied from interface:Entity
Returns the catnip instance associated with this entity. -
name
Description copied from interface:Emoji
Name of this emoji, if it'scustom
, or it'sunicode
value.
This may be null in the case of reactions.- Specified by:
name
in interfaceEmoji
- Specified by:
name
in interfaceHasNullableName
- Returns:
- String representing the name or unicode value.
-
requiresColons
public boolean requiresColons()Description copied from interface:Emoji
Whether this emoji must be wrapped in colons.- Specified by:
requiresColons
in interfaceEmoji
- Returns:
- True if it should be wrapped in colons, false otherwise.
-
name
- Returns:
this
.
-
requiresColons
- Returns:
this
.
-