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

11
LINES

< > BotCompany Repo | #1025455 // parse3_plusBrackets_cachedInput

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

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

scope parse3_plusBrackets_cachedInput.

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

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

end scope

Author comment

Began life as a copy of #1017785

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: #1025455
Snippet name: parse3_plusBrackets_cachedInput
Eternal ID of this version: #1025455/3
Text MD5: 0cfebace4455333e15389a69a635620d
Transpilation MD5: 981e5ae4ef58be04da1109195c1c5349
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-09-29 02:30:00
Source code size: 291 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 131 / 195
Version history: 2 change(s)
Referenced in: [show references]