static Map<S, UniqueString> uniqueString_map = weakHashMap(); static UniqueString uniqueString(S s) { if (s == null) null; synchronized(uniqueString_map) { UniqueString us = uniqueString_map.get(s); if (us == null) uniqueString_map.put(s, us = UniqueString(s, true)); ret us; } } static UniqueString uniqueString(CharSequence s) { ret s == null ? null : uniqueString(str(s)); }
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1017670 |
| Snippet name: | uniqueString - make UniqueString |
| Eternal ID of this version: | #1017670/1 |
| Text MD5: | 20d62973691bb60df56abefb1aebde39 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-07-31 23:03:04 |
| Source code size: | 419 bytes / 15 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 648 / 719 |
| Referenced in: | [show references] |