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

11
LINES

< > BotCompany Repo | #1022226 // javaTokNPunctuationC_cached - codeTokens of javaTokNPunctuation

JavaX fragment (include)

scope javaTokNPunctuationC_cached.

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

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

end scope

Author comment

Began life as a copy of #1020302

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: #1022226
Snippet name: javaTokNPunctuationC_cached - codeTokens of javaTokNPunctuation
Eternal ID of this version: #1022226/3
Text MD5: 37f13473ecb5787c37129893b64aec21
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:35:29
Source code size: 284 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 331 / 345
Version history: 2 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1022228 - javaTokNPunctuation_cached
#1023226 - wordTokC - codeTokens of wordTok (cached)