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).

1  
static simplyCached NavigableMap<S> emojiShortNameMap() {
2  
  NavigableMap<S> map = ciMap();
3  
  for (Map m : rawEmojisList()) {
4  
    S shortName = cast m.get("shortname");
5  
    S emoji = cast m.get("emoji");
6  
    if (startsWith(shortName, ":"))
7  
      map.put(shortName, emoji);
8  
  }
9  
  ret map;
10  
}

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: 198 / 299
Version history: 5 change(s)
Referenced in: [show references]