1 | scope javaTokWithAllBrackets_cached. |
2 | |
3 | static Map<S, LS> #cache = synchronizedMRUCache(defaultTokenizerCacheSize()); |
4 | |
5 | static L<S> javaTokWithAllBrackets_cached(S s) { |
6 | LS tok = cache.get(s); |
7 | if (tok == null) cache.put(s, tok = javaTokWithAllBrackets(s)); |
8 | ret tok; |
9 | } |
10 | |
11 | end scope |
Began life as a copy of #1025298
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1028078 |
Snippet name: | javaTokWithAllBrackets_cached |
Eternal ID of this version: | #1028078/1 |
Text MD5: | 3b6e9343ead76687cc7a4fc48984c1ec |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-05-17 14:45:50 |
Source code size: | 290 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 214 / 262 |
Referenced in: | [show references] |