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).

1  
scope parse3_plusBrackets_cachedInput.
2  
3  
static Map<S, LS> #cache = synchronizedMRUCache(defaultTokenizerCacheSize());
4  
5  
static L<S> parse3_plusBrackets_cachedInput(S s) {
6  
  LS tok = cache.get(s);
7  
  if (tok == null) cache.put(s, tok = parse3_plusBrackets(s));
8  
  ret tok;
9  
}
10  
11  
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: 198 / 277
Version history: 2 change(s)
Referenced in: [show references]