1 | scope javaTokWithBrackets_cached. |
2 | |
3 | static Map<S, LS> #cache = synchronizedMRUCache(100); |
4 | |
5 | static L<S> javaTokWithBrackets_cached(S s) {
|
6 | LS tok = cache.get(s); |
7 | if (tok == null) cache.put(s, tok = javaTokWithBrackets(s)); |
8 | ret tok; |
9 | } |
10 | |
11 | end scope |
Began life as a copy of #1017785
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: | #1021253 |
| Snippet name: | javaTokWithBrackets_cached |
| Eternal ID of this version: | #1021253/3 |
| Text MD5: | 123e11f9c52feede79aa29e1e5c0c414 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2019-02-16 21:02:51 |
| Source code size: | 257 bytes / 11 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 814 / 836 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |