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

11
LINES

< > BotCompany Repo | #1025297 // javaTokWithAngleBracketsC_cached

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (2489L/16K).

scope javaTokWithAngleBracketsC_cached.

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

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

end scope

Author comment

Began life as a copy of #1014763

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1025297
Snippet name: javaTokWithAngleBracketsC_cached
Eternal ID of this version: #1025297/1
Text MD5: 72f6e8593507140690b92edeffc75ffa
Transpilation MD5: 66708fd3848fd00a7187c0dfde443312
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-09-20 13:15:14
Source code size: 299 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 271 / 376
Referenced in: [show references]