Packages

class ShortCodes extends AnyRef

An emoji to shortcode mapping. This is a class that should be declared and used as an implicit value, so that shortcode mappings don't have to be global across an application.

"import ShortCodes.Defaults._" to import the default shortcode mapping. "import ShortCodes.Implicits._" to enrich Emoji and String with shortcode methods.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ShortCodes
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new ShortCodes(template: Option[ShortCodes] = None)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clear(): Unit

    Completely removes the emoji and shortcodes from the mapping.

  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  7. def emoji(shortCode: String): Option[Emoji]

    Returns Some(emoji) if a short code is defined, None otherwise

  8. def emojis: Set[Emoji]

    Returns the set of emojis that have short codes.

  9. def entry(emoji: Emoji, shortCode: String): Unit

    Defines a mapping between an emoji and a short code.

    Defines a mapping between an emoji and a short code. Emojis may have multiple short code mappings.

  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  13. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  18. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  19. def removeCode(shortCode: String): Unit

    Removes a shortcode from the mapping.

    Removes a shortcode from the mapping. This does not remove the emoji.

  20. def removeEmoji(emoji: Emoji): Unit

    Removes emoji from the shortcodes mapping.

    Removes emoji from the shortcodes mapping. This removes all the codes that map to the emoji as well.

  21. def shortCodes: Set[String]

    Returns the set of short codes mapped to emojis.

  22. def shortCodes(emoji: Emoji): Option[Set[String]]

    Returns the short codes for this emoji.

  23. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  24. def toString(): String
    Definition Classes
    AnyRef → Any
  25. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  26. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  27. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped