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

11
LINES

< > BotCompany Repo | #1025701 // javaTokNPunctuationWithBrackets_plusAsterisk_cached

JavaX fragment (include)

scope javaTokNPunctuationWithBrackets_plusAsterisk_cached.

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

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

end scope

Author comment

Began life as a copy of #1021365

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: #1025701
Snippet name: javaTokNPunctuationWithBrackets_plusAsterisk_cached
Eternal ID of this version: #1025701/1
Text MD5: a7b96e46531708481a028136cc9f8026
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-10-13 23:40:13
Source code size: 356 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 152 / 203
Referenced in: [show references]