public class Emoji extends Object
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getAliases()
Returns the aliases of the emoji
|
String |
getDescription()
Returns the description of the emoji
|
String |
getHtmlDecimal()
Returns the HTML decimal representation of the emoji
|
String |
getHtmlHexidecimal()
Returns the HTML hexadecimal representation of the emoji
|
List<String> |
getTags()
Returns the tags of the emoji
|
String |
getUnicode()
Returns the unicode representation of the emoji
|
String |
getUnicode(Fitzpatrick fitzpatrick)
Returns the unicode representation of the emoji associated with the provided Fitzpatrick modifier.
If the modifier is null, then the result is similar to getUnicode() |
boolean |
supportsFitzpatrick()
Returns wether the emoji supports the Fitzpatrick modifiers or not
|
String |
toString()
Returns the String representation of the Emoji object.
Example: Emoji{description='smiling face with open mouth and smiling eyes', supportsFitzpatrick=false, aliases=[smile], tags=[happy, joy, pleased], unicode='😄', htmlDec='😄', htmlHex='😄'} |
public String getDescription()
public boolean supportsFitzpatrick()
public List<String> getAliases()
public List<String> getTags()
public String getUnicode()
public String getUnicode(Fitzpatrick fitzpatrick)
getUnicode()fitzpatrick - the fitzpatrick modifier or nullUnsupportedOperationException - if the emoji doesn't support the Fitzpatrick modifierspublic String getHtmlDecimal()
public String getHtmlHexidecimal()
public String toString()
Emoji{description='smiling face with open mouth and smiling eyes', supportsFitzpatrick=false, aliases=[smile], tags=[happy, joy, pleased], unicode='😄', htmlDec='😄', htmlHex='😄'}Copyright © 2015. All rights reserved.