1 | scope javaTokNPunctuation_cached. |
2 | |
3 | static Map<S, LS> #cache = synchronizedMRUCache(defaultTokenizerCacheSize()); |
4 | |
5 | static L<S> javaTokNPunctuation_cached(S s) { |
6 | LS tok = cache.get(s); |
7 | if (tok == null) cache.put(s, tok = javaTokNPunctuation(s)); |
8 | ret tok; |
9 | } |
10 | |
11 | end scope |
Began life as a copy of #1022226
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1022228 |
Snippet name: | javaTokNPunctuation_cached |
Eternal ID of this version: | #1022228/1 |
Text MD5: | 6f507e11b3c1bfe3f927f47fb710ce2b |
Author: | stefan |
Category: | javax / tokenizing |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-03-11 13:39:29 |
Source code size: | 281 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 311 / 361 |
Referenced in: | [show references] |