Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

11
LINES

< > BotCompany Repo | #1028078 // javaTokWithAllBrackets_cached

JavaX fragment (include)

scope javaTokWithAllBrackets_cached.

static Map<S, LS> #cache = synchronizedMRUCache(defaultTokenizerCacheSize());

static L<S> javaTokWithAllBrackets_cached(S s) {
  LS tok = cache.get(s);
  if (tok == null) cache.put(s, tok = javaTokWithAllBrackets(s));
  ret tok;
}

end scope

Author comment

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: 140 / 186
Referenced in: [show references]