Enum Class EmojiType

java.lang.Object
java.lang.Enum<EmojiType>
net.fellbaum.jemoji.EmojiType
All Implemented Interfaces:
Serializable, Comparable<EmojiType>, Constable

public enum EmojiType extends Enum<EmojiType>
The EmojiType enum represents various types or formats in which emojis can be encoded or represented.
  • Enum Constant Details

    • HTML_DECIMAL

      public static final EmojiType HTML_DECIMAL
      Represents a format for encoding emojis using HTML decimal notation. In this representation, emojis are encoded as decimal values of their Unicode code points, encapsulated within an HTML entity (e.g., "&#value;" format). This format is commonly used in HTML documents to ensure proper rendering of emojis or special characters across different platforms.
    • HTML_HEXADECIMAL

      public static final EmojiType HTML_HEXADECIMAL
      Represents a format for encoding emojis using HTML hexadecimal notation. In this representation, emojis are encoded as hexadecimal values of their Unicode code points, encapsulated within an HTML entity (e.g., "&#xvalue;;" format). This format is often used in HTML documents to ensure consistent rendering of emojis or special characters across various platforms and browsers.
    • URL_ENCODED

      public static final EmojiType URL_ENCODED
      Represents an encoding format in which emojis are transformed into a URL-safe format by replacing non-ASCII characters with percent-encoded values. This is typically used in web applications or HTTP requests where emojis or special characters need to be included in URLs.
    • UNICODE

      public static final EmojiType UNICODE
      Represents the Unicode representation of an emoji. Selecting this type ensures that the emoji is encoded in its standard Unicode format often used in text processing and rendering.
  • Method Details

    • values

      public static EmojiType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static EmojiType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null