public class Emoji
extends java.lang.Object
| 限定符 | 构造器和说明 |
|---|---|
protected |
Emoji(java.lang.String description,
boolean supportsFitzpatrick,
java.util.List<java.lang.String> aliases,
java.util.List<java.lang.String> tags,
byte... bytes)
Constructor for the Emoji.
|
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
equals(java.lang.Object other) |
java.util.List<java.lang.String> |
getAliases()
Returns the aliases of the emoji
|
java.lang.String |
getDescription()
Returns the description of the emoji
|
java.lang.String |
getHtmlDecimal()
Returns the HTML decimal representation of the emoji
|
java.lang.String |
getHtmlHexadecimal()
Returns the HTML hexadecimal representation of the emoji
|
java.lang.String |
getHtmlHexidecimal()
已过时。
identical to
getHtmlHexadecimal() for
backwards-compatibility. Use that instead. |
java.util.List<java.lang.String> |
getTags()
Returns the tags of the emoji
|
java.lang.String |
getUnicode()
Returns the unicode representation of the emoji
|
java.lang.String |
getUnicode(Fitzpatrick fitzpatrick)
Returns the unicode representation of the emoji associated with the
provided Fitzpatrick modifier.
|
int |
hashCode() |
boolean |
supportsFitzpatrick()
Returns wether the emoji supports the Fitzpatrick modifiers or not
|
java.lang.String |
toString()
Returns the String representation of the Emoji object.
|
protected Emoji(java.lang.String description,
boolean supportsFitzpatrick,
java.util.List<java.lang.String> aliases,
java.util.List<java.lang.String> tags,
byte... bytes)
description - The description of the emojisupportsFitzpatrick - Whether the emoji supports Fitzpatrick modifiersaliases - the aliases for this emojitags - the tags associated with this emojibytes - the bytes that represent the emojipublic java.lang.String getDescription()
public boolean supportsFitzpatrick()
public java.util.List<java.lang.String> getAliases()
public java.util.List<java.lang.String> getTags()
public java.lang.String getUnicode()
public java.lang.String getUnicode(Fitzpatrick fitzpatrick)
getUnicode()fitzpatrick - the fitzpatrick modifier or nulljava.lang.UnsupportedOperationException - if the emoji doesn't support the
Fitzpatrick modifierspublic java.lang.String getHtmlDecimal()
public java.lang.String getHtmlHexidecimal()
getHtmlHexadecimal() for
backwards-compatibility. Use that instead.public java.lang.String getHtmlHexadecimal()
public boolean equals(java.lang.Object other)
equals 在类中 java.lang.Objectpublic int hashCode()
hashCode 在类中 java.lang.Objectpublic java.lang.String toString()
Emoji {
description='smiling face with open mouth and smiling eyes',
supportsFitzpatrick=false,
aliases=[smile],
tags=[happy, joy, pleased],
unicode='😄',
htmlDec='😄',
htmlHex='😄'
}toString 在类中 java.lang.ObjectCopyright © 2019. All Rights Reserved.