Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

10
LINES

< > BotCompany Repo | #1029674 // emojiShortNameMap

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (4524L/31K).

static simplyCached NavigableMap<S> emojiShortNameMap() {
  NavigableMap<S> map = ciMap();
  for (Map m : rawEmojisList()) {
    S shortName = cast m.get("shortname");
    S emoji = cast m.get("emoji");
    if (startsWith(shortName, ":"))
      map.put(shortName, emoji);
  }
  ret map;
}

Author comment

Began life as a copy of #1029673

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1029674
Snippet name: emojiShortNameMap
Eternal ID of this version: #1029674/6
Text MD5: 4c2a6bc7c16b27dbd4f088a42ff36037
Transpilation MD5: 3797588da00b7f6771c836e4e72ce317
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-09-07 13:08:49
Source code size: 297 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 130 / 205
Version history: 5 change(s)
Referenced in: [show references]