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

11
LINES

< > BotCompany Repo | #1021365 // javaTokNPunctuationWithBrackets_cached

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

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

scope javaTokNPunctuationWithBrackets_cached.

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

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

end scope

Author comment

Began life as a copy of #1021253

download  show line numbers  debug dex  old transpilations   

Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1021365
Snippet name: javaTokNPunctuationWithBrackets_cached
Eternal ID of this version: #1021365/4
Text MD5: a4ce445a6fa2f4b9705893c1bb39dae5
Transpilation MD5: c6a2ffd34b58afff0300b6bd3ab67ed2
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:14:50
Source code size: 317 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 298 / 357
Version history: 3 change(s)
Referenced in: [show references]